Skip to content

Commit d8fdb83

Browse files
committed
Improve Blynk.Edgent examples
1 parent af6d7b3 commit d8fdb83

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

examples/Blynk.Edgent/Edgent_ESP32/BlynkEdgent.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ extern "C" {
1212
#error "Old version of Blynk library is in use. Please replace it with the new one."
1313
#endif
1414

15+
#if !defined(BLYNK_TEMPLATE_ID) || !defined(BLYNK_DEVICE_NAME)
16+
#error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME"
17+
#endif
18+
1519
#include "BlynkState.h"
1620
#include "ConfigStore.h"
1721
#include "ResetButton.h"

examples/Blynk.Edgent/Edgent_ESP32/Edgent_ESP32.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
// Fill-in information from your Blynk Template here
3-
#define BLYNK_TEMPLATE_ID ""
4-
#define BLYNK_DEVICE_NAME ""
3+
//#define BLYNK_TEMPLATE_ID "TMPLxxxxxx"
4+
//#define BLYNK_DEVICE_NAME "Device"
55

66
#define BLYNK_FIRMWARE_VERSION "0.1.0"
77

examples/Blynk.Edgent/Edgent_ESP8266/BlynkEdgent.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ extern "C" {
1212
#error "Old version of Blynk library is in use. Please replace it with the new one."
1313
#endif
1414

15+
#if !defined(BLYNK_TEMPLATE_ID) || !defined(BLYNK_DEVICE_NAME)
16+
#error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME"
17+
#endif
18+
1519
#include "BlynkState.h"
1620
#include "ConfigStore.h"
1721
#include "ResetButton.h"

examples/Blynk.Edgent/Edgent_ESP8266/Edgent_ESP8266.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
// Fill-in information from your Blynk Template here
3-
#define BLYNK_TEMPLATE_ID ""
4-
#define BLYNK_DEVICE_NAME ""
3+
//#define BLYNK_TEMPLATE_ID "TMPLxxxxxx"
4+
//#define BLYNK_DEVICE_NAME "Device"
55

66
#define BLYNK_FIRMWARE_VERSION "0.1.0"
77

0 commit comments

Comments
 (0)