blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.81k stars 1.38k forks source link

Cannot run on UNO R4 WiFi using WiFi #591

Closed balazscseh closed 10 months ago

balazscseh commented 10 months ago

There isn't an option in the sketch-generator to run on the UNO R4 WiFi. When i select the Arduino board type the ESP32 co-processor is missing under the connection type and with a simple WiFi-Shield option, the IDE gives me the following error:

In file included from C:\Documents\Arduino\blynkdemo\blynkdemo.ino:18:0:
C:\Documents\Arduino\libraries\Blynk\src/BlynkSimpleWifi.h:27:10: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'?
   static WiFiClient _blynkWifiClient;
          ^~~~~~~~~~
          DNSClient
C:\Documents\Arduino\libraries\Blynk\src/BlynkSimpleWifi.h:28:45: error: '_blynkWifiClient' was not declared in this scope
   static BlynkArduinoClient _blynkTransport(_blynkWifiClient);
                                             ^~~~~~~~~~~~~~~~
C:\Documents\Arduino\libraries\Blynk\src/BlynkSimpleWifi.h:28:45: note: suggested alternative: 'BlynkWifiCommon'
   static BlynkArduinoClient _blynkTransport(_blynkWifiClient);
                                             ^~~~~~~~~~~~~~~~
                                             BlynkWifiCommon

exit status 1

Compilation error: exit status 1

I'm using the latest IDE from Arduino on Windows: 2.1.1

vshymanskyy commented 10 months ago

There's no specific example for this board. You can use one of the generic Arduino Client examples: https://github.com/blynkkk/blynk-library/blob/master/examples/Boards_ArduinoClient