Hello Forumo,
i just got an Aduino Uno Wifi Rev2 and I am not able to compile any sketch including the aREST library (same sketch compile on legacy Arduino Uno) on the Wifi i get the reply cannot compile on Arduino Uno Wifi Rev2 (it's enough to include the lib into an empty sketch to get this error).
The error log repeat several time this message:
"C:\Users\Alessandro\Documents\Arduino\libraries\aREST/aREST.h:1556:40: error: no matching function
for call to 'aREST::addToBufferF(const char [16])'
addToBufferF(F("{"variables": {"));"
i don't have any idea how to solve, do you have any suggestion?
Thx in advance
Alessandro
See this discussion:
https://forum.arduino.cc/index.php?topic=653817.0
After modifying the file, that particular error goes away in the sample sketch I tried.
The problem is caused by the fact that the Uno WiFi Rev 2 board uses an atmega4809 instead of the atmega328p used in the Uno. The atmega4809 accesses flash memory the same way it accesses ram, without the need for special instructions, so the F() macro is not used.
No idea if the aREST library will work properly, the Uno WiFI Rev 2 uses the WiFiNINA library for wireless, and the aREST library appears to have been written well before the atmega4809 boards were introduced.
Thank You! Now it's compile i'll let you if the library works (currently i am facing some issues)