Skip to content

Commit

Permalink
Improve Blynk.Edgent examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vshymanskyy committed May 25, 2021
1 parent af6d7b3 commit d8fdb83
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions examples/Blynk.Edgent/Edgent_ESP32/BlynkEdgent.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ extern "C" {
#error "Old version of Blynk library is in use. Please replace it with the new one."
#endif

#if !defined(BLYNK_TEMPLATE_ID) || !defined(BLYNK_DEVICE_NAME)
#error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME"
#endif

#include "BlynkState.h"
#include "ConfigStore.h"
#include "ResetButton.h"
Expand Down
4 changes: 2 additions & 2 deletions examples/Blynk.Edgent/Edgent_ESP32/Edgent_ESP32.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID ""
#define BLYNK_DEVICE_NAME ""
//#define BLYNK_TEMPLATE_ID "TMPLxxxxxx"
//#define BLYNK_DEVICE_NAME "Device"

#define BLYNK_FIRMWARE_VERSION "0.1.0"

Expand Down
4 changes: 4 additions & 0 deletions examples/Blynk.Edgent/Edgent_ESP8266/BlynkEdgent.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ extern "C" {
#error "Old version of Blynk library is in use. Please replace it with the new one."
#endif

#if !defined(BLYNK_TEMPLATE_ID) || !defined(BLYNK_DEVICE_NAME)
#error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME"
#endif

#include "BlynkState.h"
#include "ConfigStore.h"
#include "ResetButton.h"
Expand Down
4 changes: 2 additions & 2 deletions examples/Blynk.Edgent/Edgent_ESP8266/Edgent_ESP8266.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID ""
#define BLYNK_DEVICE_NAME ""
//#define BLYNK_TEMPLATE_ID "TMPLxxxxxx"
//#define BLYNK_DEVICE_NAME "Device"

#define BLYNK_FIRMWARE_VERSION "0.1.0"

Expand Down

0 comments on commit d8fdb83

Please sign in to comment.