Skip to content

Commit a4f38f1

Browse files
committed
update Blynk example
1 parent 767c055 commit a4f38f1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

examples/Special/WiFiEspAtBlynk/WiFiEspAtBlynk.ino

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
/* Comment this out to disable prints and save space */
2525
#define BLYNK_PRINT Serial
2626

27+
/* Fill in information from Blynk Device Info here */
28+
//#define BLYNK_TEMPLATE_ID "TMPxxxxxx"
29+
//#define BLYNK_TEMPLATE_NAME "Device"
30+
//#define BLYNK_AUTH_TOKEN "YourAuthToken"
31+
2732
#include <WiFiEspAT.h>
2833
#include <BlynkSimpleWifi.h>
2934

@@ -36,10 +41,6 @@ SoftwareSerial Serial1(6, 7); // RX, TX
3641
#define AT_BAUD_RATE 115200
3742
#endif
3843

39-
// You should get Auth Token in the Blynk App.
40-
// Go to the Project Settings (nut icon).
41-
char auth[] = "YourAuthToken";
42-
4344
void setup() {
4445
Serial.begin(115200);
4546
while (!Serial);
@@ -61,7 +62,7 @@ void setup() {
6162
}
6263
Serial.println("You're connected to the network");
6364

64-
Blynk.config(auth, BLYNK_DEFAULT_DOMAIN, BLYNK_DEFAULT_PORT);
65+
Blynk.config(BLYNK_AUTH_TOKEN, BLYNK_DEFAULT_DOMAIN, BLYNK_DEFAULT_PORT);
6566
while(Blynk.connect() != true) {}
6667
}
6768

0 commit comments

Comments
 (0)