Closed sticilface closed 9 years ago
if this is possible, it would be good to also have a non standalone example sketch, just to easily see how to add blynk as an addon to our existing esp projects
you can easily add it to existing projects.
#include <BlynkSimpleEsp8266.h>
char auth[] = "xyz";
void setup() {
Blynk.begin(auth, "ssid", "pass");
}
void loop () {
Blynk.run();
}
// This takes the value of virtual pin 0 in blynk program... if it is 1 turns on, else off...
BLYNK_WRITE(0)
{
int a = param.asInt();
if (a == 1) opState = RAINBOW; else opState = OFF;
}
//// This publishes the int power back to the blynk program...
BLYNK_READ(1)
{
int power = getPixelPower();
Blynk.virtualWrite(0, power);
}
hi, i meant the same as you "Can Blynk.begin(auth, "ssid", "pass"); be called without specifying the wifi credentials. If we are managing it elsewhere? ".
i already have the wifi connection taken care of in another lib..
another issue closely related to blynk managing the wifi connection is that if it fails to connect there s nothing i can do anymore, like reset the esp or try another access point, etc, it s just stuck there
I'm now working to enable connect/disconnect from Blynk server.. cheers :)
Guys, in the master branch I have implemented 3 features:
Please evaluate :)
this works lovely, thank you very much
Any plants to make these changes to BlynkSimpleShieldEsp8266 vshymanskyy?
@chinswain what's the problem?
@vshymanskyy please see this thread that explains the question from @chinswain http://community.blynk.cc/t/esp8266-as-a-shield-wifi-recovery/11666
Can
Blynk.begin(auth, "ssid", "pass");
be called without specifying the wifi credentials. If we are managing it elsewhere?