Arduino compiling error

Post Reply
jason
Posts: 6
Joined: Sun Sep 23, 2018 8:56 am

Compiling any of the examples provided with the arduino library yields the following error:

In file included from /Users/MB/Documents/Arduino/libraries/SuplaDevice/SuplaDevice.h:300:0,
from /Users/MB/Documents/Arduino/libraries/SuplaDevice/examples/SuplaEthernetShield/SuplaEthernetShield.ino:19:
/Users/MB/Documents/Arduino/libraries/SuplaDevice/supla_main_helper.cpp:70:3: error: 'UNKNOWN' does not name a type
UNKNOWN ETHERNET LIBRARY
^
exit status 1


Both Ethernet and uIP libraries are installed.
User avatar
pzygmunt
Posts: 18281
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Clean your env or reinstal Arduino IDE
jason
Posts: 6
Joined: Sun Sep 23, 2018 8:56 am

Tried both in three separate computers, errors keep coming. Any other suggestion? IDE versions installed: 1.6.9 & 1.8.7
User avatar
pzygmunt
Posts: 18281
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Install the following libraries:
UIPEthernet
Ethernet
Attachments
eth.png
eth.png (28.23 KiB) Viewed 11800 times
uip.png
uip.png (9.3 KiB) Viewed 11800 times
dyrdzik
Posts: 2
Joined: Fri Oct 12, 2018 8:05 am

Hi!

I had the same problem and the solution is very easy. By default, when you install Arduino IDE, it comes with Ethernet library v 2.0.0. Just go to the libraries manager and change the version to 1.1.2 (the one mentioned by pzygmunt). As soon as you do that, you'll still receive some warnings, but the code will compile and it works on Arduino very well! Love SUPLA :)

M.
selo
Posts: 9
Joined: Mon Mar 04, 2019 1:31 am

dyrdzik wrote: Fri Oct 12, 2018 8:11 am Hi!

I had the same problem and the solution is very easy. By default, when you install Arduino IDE, it comes with Ethernet library v 2.0.0. Just go to the libraries manager and change the version to 1.1.2 (the one mentioned by pzygmunt). As soon as you do that, you'll still receive some warnings, but the code will compile and it works on Arduino very well! Love SUPLA :)

M.
Thanks
Post Reply

Return to “Help”