Hi,
it took me two days to test and figure out. finally let me share how it is working for me:
I do have an original arduino uno wifi rev2
Project settings in blynk app: my device = GENERIC BOARD connection type = WiFi
connection via Iphone hotspot (not via router)
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <WiFiNINA.h>
#include <BlynkSimpleWiFiNINA.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "6**************************e";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "iPhone von M*****";
char pass[] = "g*************";
//char ssid[] = "G*************";
//char pass[] = "m***********";
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
}
// This function will be called every time Slider Widget
// in Blynk app writes values to the Virtual Pin 1
BLYNK_WRITE(V1)
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
// You can also use:
// String i = param.asStr();
// double d = param.asDouble();
Serial.print("V1 Slider value is: ");
Serial.println(pinValue);
}
void loop()
{
Blynk.run();
}
before this, I did update wifinina firmware to 1.2.4 (not 1.3.0) and you need to install all libraries which you include.
hope this helps out. happy blynk…