Closed Aubrey4485 closed 10 months ago
Blynk library version: [1.2.0 installed] IDE: [Arduino] IDE version: [2.1.0] Board type: [Arduino UNO Wifi Rev.2] Additional modules: [WiFiNINA] OS: Windows 10 x64
Install Blynk via Arduino IDE, use #include <BlynkSimpleWiFiNINA.h>
to setup for the Uno WiFi Rev.2 and attempt compilation when inserting necassary functions.
Compiles and allows completion of template setup.
Fails to compile in the same manner as described above. Compile error does suggest the changing of atoll
to atol
on lines 50 and 91 of BlynkParam.h
Following a frantic search, I find fourm posts similar to the ones described above detailing the issue and suggesting the same fix. atoll
was changed to atol
as follows.
Changed line 50 to:
long long asLongLong() const { return atol(ptr); }
Changed line 91 to:
long long asLongLong() const { return atol(buff); }
Now compiles without error and I've been able to use the Uno Wi-Fi Rev.2 without fault for both input and output of data to the Blynk service. Quick fix unless this does affect functionality else where. For now, I haven't discovered any such problems or experienced any other issues following this fix.
Adding under this issue as I'm most definite that the issue is identical for the user above me and want to inform that this issue occurs with the verison of the Blynk library downloaded via IDE and while using the include mentioned in the scenario.
Fixed in v1.3.2. Thanks for reporting it
Blynk library version: [1.2.0 installed] IDE: [Arduino] IDE version: [2.1.0] Board type: [Arduino UNO Wifi Rev.2] Additional modules: [N/A]
Scenario, steps to reproduce
Cannot compile and results in a "fatal" error, compilation terminated, exit status 1
Expected Result
To be able to install blynk library and compile and connect board to the new blynk.cloud 2.0
Actual Result
Does not work and results in fatal error.
As other users on the blynk.forum have figured out. The "BlynkParam.h" file needs to be altered on end of line 91 FROM "return atoll(buff)" TO "return atol(buff)".... some have mentioned needing to do this on 2-4 lines of code. However I was able to modify this 1 line of code and everything worked and the board finally compiled/uploaded and connected to the blynk.cloud 2.0.
Whenever you have time, please modify this so others won't need to search and alter internal program files. Thanks! Take Care
Thanks for all you do!