hi everybody, I am trying to upload this sample code generated by blynk to my arduino uno wifi rev2 board. Please help me rectify the error.
You have to download and install wifi.h first.
You have a programming problem, not an upload problem. Hence your topic has been moved to a more suitable location on the forum.
Please don't post images of errors or of code in future. Post text as text and use code tags (the <CODE>
button on the forum above the editor text box).
after downloading wifi.h and compiling the code again, here's the new error
In file included from c:\Users\nisht\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:36:0,
from c:\Users\nisht\OneDrive\Documents\Arduino\libraries\Blynk\src/BlynkApiArduino.h:14,
from c:\Users\nisht\OneDrive\Documents\Arduino\libraries\Blynk\src/Adapters/BlynkWiFiCommon.h:24,
from c:\Users\nisht\OneDrive\Documents\Arduino\libraries\Blynk\src/BlynkSimpleWifi.h:24,
from C:\Users\nisht\OneDrive\Desktop\Arduino_Wifi\Arduino_Wifi.ino:27:
c:\Users\nisht\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkParam.h: In member function 'long long int BlynkParam::iterator::asLongLong() const':
c:\Users\nisht\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkParam.h:50:50: error: 'atoll' was not declared in this scope
long long asLongLong() const { return atoll(ptr); }
^~~~~
c:\Users\nisht\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkParam.h:50:50: note: suggested alternative: 'atol'
long long asLongLong() const { return atoll(ptr); }
^~~~~
atol
c:\Users\nisht\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkParam.h: In member function 'long long int BlynkParam::asLongLong() const':
c:\Users\nisht\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkParam.h:91:46: error: 'atoll' was not declared in this scope
long long asLongLong() const { return atoll(buff); }
^~~~~
c:\Users\nisht\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkParam.h:91:46: note: suggested alternative: 'atol'
long long asLongLong() const { return atoll(buff); }
^~~~~
atol
What's the solution??
IF you want to solve the error then
open 'BlynkParam.h' from your Arduino\libraries\Blynk\src/Blynk/BlynkParam.h and then replace all 'atoll' with 'atol'.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.