Hello,
I have an application where more than one mobile device (Android and/or iOS) need to access the same hardware (ESP8266). However, due to the token, this not being possible. Has anyone done this?
-x-x-x-x-x-x-x-x -x code-x-x-x-x-x-
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <Ethernet.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
AUTH char [] = “this_is_my_problem”;
// Your WiFi credentials.
// Set password to “” for open networks.
ssid char [] = “network”;
char pass [] = “password”;
WidgetLED LED1 (V1);
void setup ()
{
Serial.begin (9600);
Blynk.begin (auth, ssid, pass);
// Make pin D2 default HIGH, and attach INT to our handler
pinMode (D4 INPUT_PULLUP);
}
checkPin void ()
{
if (digitalRead (D4) == LOW) {
led1.off ();
} Else {
led1.on ();
}
}
void loop ()
{
Blynk.run ();
checkPin ();
}