38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
/*************************************************************
|
|
This is a DEMO. You can use it only for development and testing.
|
|
You should open Setting.h and modify General options.
|
|
|
|
If you would like to add these features to your product,
|
|
please contact Blynk for Businesses:
|
|
|
|
http://www.blynk.io/
|
|
|
|
*************************************************************/
|
|
|
|
#define USE_SPARKFUN_BLYNK_BOARD // Uncomment the board you are using
|
|
//#define USE_NODE_MCU_BOARD // Comment out the boards you are not using
|
|
//#define USE_WITTY_CLOUD_BOARD
|
|
//#define USE_CUSTOM_BOARD // For all other ESP8266-based boards -
|
|
// see "Custom board configuration" in Settings.h
|
|
|
|
#define APP_DEBUG // Comment this out to disable debug prints
|
|
|
|
#define BLYNK_PRINT Serial
|
|
|
|
#include "BlynkProvisioning.h"
|
|
|
|
void setup() {
|
|
delay(500);
|
|
Serial.begin(115200);
|
|
|
|
BlynkProvisioning.begin();
|
|
|
|
}
|
|
|
|
void loop() {
|
|
// This handles the network and cloud connection
|
|
BlynkProvisioning.run();
|
|
|
|
}
|
|
|