Skip to content

Commit 8af0194

Browse files
committed
Forbid BLYNK_AUTH_TOKEN usage in Blynk.Edgent
1 parent b39fbaa commit 8af0194

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

examples/Blynk.Edgent/Edgent_ESP32/BlynkEdgent.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ extern "C" {
3131
#error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME"
3232
#endif
3333

34+
#if defined(BLYNK_AUTH_TOKEN)
35+
#error "BLYNK_AUTH_TOKEN is assigned automatically when using Blynk.Edgent, please remove it from the configuration"
36+
#endif
37+
3438
BlynkTimer edgentTimer;
3539

3640
#include "BlynkState.h"

examples/Blynk.Edgent/Edgent_ESP8266/BlynkEdgent.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ extern "C" {
3737
#error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME"
3838
#endif
3939

40+
#if defined(BLYNK_AUTH_TOKEN)
41+
#error "BLYNK_AUTH_TOKEN is assigned automatically when using Blynk.Edgent, please remove it from the configuration"
42+
#endif
43+
4044
BlynkTimer edgentTimer;
4145

4246
#include "BlynkState.h"

examples/Blynk.Edgent/Edgent_Wio_Terminal/BlynkEdgent.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ extern "C" {
1919
#error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME"
2020
#endif
2121

22+
#if defined(BLYNK_AUTH_TOKEN)
23+
#error "BLYNK_AUTH_TOKEN is assigned automatically when using Blynk.Edgent, please remove it from the configuration"
24+
#endif
25+
2226
BlynkTimer edgentTimer;
2327

2428
#include "BlynkState.h"

src/Blynk/BlynkApiNCP.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
#error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME"
2424
#endif
2525

26+
#if defined(BLYNK_AUTH_TOKEN)
27+
#error "BLYNK_AUTH_TOKEN is assigned automatically when using Blynk.Edgent, please remove it from the configuration"
28+
#endif
29+
2630
#include <Blynk/BlynkConfig.h>
2731
#include <Blynk/BlynkParam.h>
2832
#include <Blynk/BlynkHandlers.h>

0 commit comments

Comments
 (0)