marcoschwartz / aREST

A RESTful environment for Arduino
http://aREST.io/
Other
1.2k stars 279 forks source link

Does aREST support the Arduino Uno WiFi r2 Board ? #303

Closed djipco closed 2 years ago

djipco commented 2 years ago

Does the aREST library support the Arduino Uno WiFi revision 2 Board ? This board, like the Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000 and Nano 33 IoT, is using the WiFININA library.

I believe the API is almost identical to the original Wifi library so it should be possible to add support for it without too much effort. Is that under consideration?

marcoschwartz commented 2 years ago

Hi! Never tried it with this board, but if it's close to the MKR board it should work. Do you have any error you could share when trying to compile the example MKR 1000 code with this board?

djipco commented 2 years ago

I just tried it with the MKR1000.ino sketch and I do not get any compilation errors after changing #include <WiFi101.h> for #include <WiFiNINA.h>. In the serial monitor, it says the wifi is connected and the server is started.

I am able to query a pin for status but I'm unable to turn on the onboard LED. I'm not sure if I'm the problem or if there is an issue with the compatibility.

marcoschwartz commented 2 years ago

Hi, that's good progress :) By onboard LED you mean some board integrated on your Arduino board? did you try with an external LED?

djipco commented 2 years ago

It's working! I guess I had not set the pin to be an output. This is using v2.9.6. In the end, all I had to do was swap #include <WiFi101.h> for #include <WiFiNINA.h>.