beads
New Member
Posts: 3
|
Post by beads on Nov 3, 2019 9:00:47 GMT -8
Attempting to compile SDL_OurWeather...ino in Arduino ide. After correcting misspellings, compilation fails stating Blynk not declared in this scope. ino calls for BlynkSimpleEsp8266.h which is not in files included from git. instead, included file is BlynkRoutines.h, which replaces BlynkSimpleEsp8266.h in quotes not carets. This then allows compilation past String, Time, elapsedMillis, and Crc16 errors. Where the hell does blynk get defined please. If this unit is intended to help people get into making and programming you do not make the experience pleasurable with all the errors I have dealt with and corrected so far to get a non working board. Please help me get this stupid thing compiled and working so I didn't waste a bunch of money. I really want this to work but I feel like Switchdoc Labs really could care less if it works.
|
|
|
Post by SDL on Nov 3, 2019 9:14:26 GMT -8
This is NOT a beginners task to compile up the OurWeather software. It is more of an intermediate task at best. I think all you have to do is install the blynk library in the Arduino library. docs.blynk.cc/#downloads-blynk-libraryBlynkSimpleEsp8266.h comes from this library, hence the carets. It does compile and many people have compiled it successfully. Misspellings? Please tell us specifically what you mean. The software compiles successfully on our development and on our production machines. Sorry you are having so many problems. BP
|
|
|
Post by zoltano on Nov 5, 2019 9:04:05 GMT -8
Thanks for the information on adding the Blynk library. I had just started looking at the code and am new to arduino, so I probably would have had the same difficulty as beads. I just tried compiling and it worked a treat!
Regards, ZO
|
|
|
Post by SDL on Nov 5, 2019 17:13:14 GMT -8
Excellent! Progress!
BP
|
|
rogerjames
Junior Member
If better is possible, good is not good enough.
Posts: 61
|
Post by rogerjames on Dec 4, 2019 12:06:12 GMT -8
Blynk Support can be added inside the Arduino IDE's Library manager. (Menu: Tools / Manage Libraries) Search for Blynk and select Install the latest version - and it's done. Look at the image. However, I would recommend SwitchDocLab to write this in the installation guide, that this library should be enabled, in the Firmware Update / Recompile section for OurweatherPlus and other product that use Blynk. After all, not everyone knows exactly how to do it. Blynk library support
|
|
|
Post by PIRITHEEVIRAMAMN on Apr 29, 2021 2:29:52 GMT -8
IN CODE Arduino: 1.8.13 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
C:\Users\User\Documents\Arduino\sketch_apr29b\sketch_apr29b.ino: In function 'void setup()':
sketch_apr29b:23:4: error: 'Blynk' was not declared in this scope
Blynk.begin(auth, ssid, pass);
^
C:\Users\User\Documents\Arduino\sketch_apr29b\sketch_apr29b.ino: In function 'void loop()':
sketch_apr29b:42:4: error: 'Blynk' was not declared in this scope
Blynk run();
^
sketch_apr29b:42:10: error: expected ';' before 'run'
Blynk run();
^
sketch_apr29b:43:4: error: 'mpu' was not declared in this scope
mpu read();
^
sketch_apr29b:43:8: error: expected ';' before 'read'
mpu read();
^
sketch_apr29b:47:18: error: expected ';' before ')' token
gx = GyX + 270) / 131.07;
^
In file included from C:\Users\User\Documents\Arduino\sketch_apr29b\sketch_apr29b.ino:3:0:
C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\Wire/Wire.h: In function 'void mpu_read()':
C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\Wire/Wire.h:71:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\Wire/Wire.h:65:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\Wire/Wire.h:71:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\Wire/Wire.h:65:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
exit status 1
'Blynk' was not declared in this scope
This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
|
|
|
Post by SDL on Apr 29, 2021 14:19:12 GMT -8
Install Blynk as shown earlier in the thread.
BP
|
|