Hello there !
I saw that the arduino mkr1000 has been included in the last library but well … in the android app, when I have to choose hardware, I can’t see the mkr1000. So I choose “generic board”. I test the connection between the arduino and my phone with this program :
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <WiFi101.h>
#include <BlynkSimpleMKR1000.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";
// Your WiFi credentials
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword"; // Set to "" for open networks
WidgetLCD lcd(V1);
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
// Or specify server using one of those commands:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
//Blynk.begin(auth, ssid, pass, server_ip, port);
while (Blynk.connect() == false) {
// Wait until connected
}
lcd.clear(); //Use it to clear the LCD Widget
lcd.print(4, 0, "Hello"); // use: (position X: 0-15, position Y: 0-1, "Message you want to print")
lcd.print(4, 1, "World");
// Please use timed events when LCD printintg in void loop to avoid sending too many commands
// It will cause a FLOOD Error, and connection will be dropped
}
}
void loop()
{
Blynk.run();
}
the arduino is connected to the server (says “ready” in the serial) but when I launch the program on my phone, nothing happen … I have “edit” the widget just like that : switch on “advanced mode” and pin configured as pin. (I’ve tested with V1 and the result was the same)
thanks for reading !