Arduino compiling error

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

Sun Sep 30, 2018 6:49 pm

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: 6240
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Sun Sep 30, 2018 6:52 pm

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

Mon Oct 01, 2018 3:26 pm

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: 6240
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Mon Oct 01, 2018 4:03 pm

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

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.
selo
Posts: 3
Joined: Mon Mar 04, 2019 1:31 am

Wed Mar 13, 2019 1:11 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