Due Support

Support forum for MegunoLink
Post Reply
gatorsoft
Posts: 3
Joined: Mon Jan 01, 2018 10:49 pm

Mon Jan 01, 2018 10:55 pm

I am looking at the examples in the trial version, they are working fine with a Uno.

However I try the same examples with a Due and they seem to error, am I doing something wrong?
philr
Posts: 279
Joined: Mon May 26, 2014 10:58 am

Tue Jan 02, 2018 2:47 am

Hi, what examples are not working for the Due? Its possible there could be issues but we should be able to fix them if we know what ones.

Cheers
Phil
gatorsoft
Posts: 3
Joined: Mon Jan 01, 2018 10:49 pm

Tue Jan 02, 2018 6:11 am

Hi Phil

Thanks for responding.

1. I complied the SendToTable example on an Uno, no problems.
2. I then tested the Due with an internal Arduino example to ensure the Due is working.
3. I then load and try to compile the SendToTable example on the Due and following errors occur.............

Arduino: 1.8.5 (Windows 10), Board: "Arduino Due (Programming Port)"

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp: In member function 'void InterfacePanel::SetProgress(const char*, int)':

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:52:32: error: call of overloaded 'SetNumber(const char*&, int&)' is ambiguous

SetNumber(ControlName, nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:52:32: note: candidates are:

In file included from C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:1:0:

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:23:8: note: void InterfacePanel::SetNumber(const char*, int16_t)

void SetNumber(const char * ControlName, int16_t nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:26:8: note: void InterfacePanel::SetNumber(const char*, int32_t)

void SetNumber(const char * ControlName, int32_t nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:29:8: note: void InterfacePanel::SetNumber(const char*, uint32_t)

void SetNumber(const char * ControlName, uint32_t nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:32:8: note: void InterfacePanel::SetNumber(const char*, float, int)

void SetNumber(const char * ControlName, float fValue, int decimal = 3);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp: In member function 'void InterfacePanel::SetListValue(const char*, int)':

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:99:32: error: call of overloaded 'SetNumber(const char*&, int&)' is ambiguous

SetNumber(ControlName, nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:99:32: note: candidates are:

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:55:6: note: void InterfacePanel::SetNumber(const char*, int16_t)

void InterfacePanel::SetNumber(const char * ControlName, int16_t nValue)

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:62:6: note: void InterfacePanel::SetNumber(const char*, int32_t)

void InterfacePanel::SetNumber(const char * ControlName, int32_t nValue)

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:69:6: note: void InterfacePanel::SetNumber(const char*, uint32_t)

void InterfacePanel::SetNumber(const char * ControlName, uint32_t nValue)

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:76:6: note: void InterfacePanel::SetNumber(const char*, float, int)

void InterfacePanel::SetNumber(const char * ControlName, float fValue, int nDecimal)

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp: In member function 'void InterfacePanel::SetListValue(const __FlashStringHelper*, int)':

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:104:32: error: call of overloaded 'SetNumber(const __FlashStringHelper*&, int&)' is ambiguous

SetNumber(ControlName, nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:104:32: note: candidates are:

In file included from C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:1:0:

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:24:8: note: void InterfacePanel::SetNumber(const __FlashStringHelper*, int16_t)

void SetNumber(const __FlashStringHelper * ControlName, int16_t nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:27:8: note: void InterfacePanel::SetNumber(const __FlashStringHelper*, int32_t)

void SetNumber(const __FlashStringHelper * ControlName, int32_t nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:30:8: note: void InterfacePanel::SetNumber(const __FlashStringHelper*, uint32_t)

void SetNumber(const __FlashStringHelper * ControlName, uint32_t nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:33:8: note: void InterfacePanel::SetNumber(const __FlashStringHelper*, float, int)

void SetNumber(const __FlashStringHelper * ControlName, float fValue, int decimal = 3);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp: In member function 'void InterfacePanel::SetProgress(const __FlashStringHelper*, int)':

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:144:32: error: call of overloaded 'SetNumber(const __FlashStringHelper*&, int&)' is ambiguous

SetNumber(ControlName, nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:144:32: note: candidates are:

In file included from C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.cpp:1:0:

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:24:8: note: void InterfacePanel::SetNumber(const __FlashStringHelper*, int16_t)

void SetNumber(const __FlashStringHelper * ControlName, int16_t nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:27:8: note: void InterfacePanel::SetNumber(const __FlashStringHelper*, int32_t)

void SetNumber(const __FlashStringHelper * ControlName, int32_t nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:30:8: note: void InterfacePanel::SetNumber(const __FlashStringHelper*, uint32_t)

void SetNumber(const __FlashStringHelper * ControlName, uint32_t nValue);

^

C:\Users\Garry\Documents\Arduino\libraries\MegunoLink\utility\InterfacePanel.h:33:8: note: void InterfacePanel::SetNumber(const __FlashStringHelper*, float, int)

void SetNumber(const __FlashStringHelper * ControlName, float fValue, int decimal = 3);

^

Multiple libraries were found for "MegunoLink.h"
Used: C:\Users\Garry\Documents\Arduino\libraries\MegunoLink
Not used: C:\Program Files (x86)\Arduino\libraries\MegunoLinkPro
exit status 1
Error compiling for board Arduino Due (Programming Port).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
shields
Posts: 10
Joined: Sat Jan 06, 2018 7:10 pm

Sat Jan 06, 2018 7:16 pm

I've been having similar problems with Megunolink using the Due. Sent an email to support@megunolink.com a few days ago but no reply yet. Been trying to compile the blink2 example as well as my own sketch. I think the problem is related to an update of either the Megunolink library or an update I did with the Megunolink version.

-Joel
philr
Posts: 279
Joined: Mon May 26, 2014 10:58 am

Sat Jan 06, 2018 11:32 pm

Hi Joel and Gatorsoft,

Yeah I'm not sure when this started but I'll test a fix and update the MegunoLink library as soon as possible. Will post here when its ready to go.

Cheers
Phil
philr
Posts: 279
Joined: Mon May 26, 2014 10:58 am

Sat Jan 06, 2018 11:43 pm

I've updated the library. You can download it and manually update from github
https://github.com/Megunolink/MLP

or wait for the arduino IDE to detect it and update using the library manager.
https://www.youtube.com/watch?v=007ql7YbFUs

Let me know how it goes

Cheers
Phil
shields
Posts: 10
Joined: Sat Jan 06, 2018 7:10 pm

Sun Jan 07, 2018 5:25 am

Phil,

Yes things seem to be working again. Thx for the help.

-Joel
gatorsoft
Posts: 3
Joined: Mon Jan 01, 2018 10:49 pm

Wed Jan 10, 2018 12:33 am

It now works - Thanks.
Post Reply