Skip to content

Commit 71062ec

Browse files
committed
Same init config for ESP8266 examples (part 1)
1 parent ce2c9b4 commit 71062ec

File tree

4 files changed

+10
-20
lines changed

4 files changed

+10
-20
lines changed

examples/ESP8266/BulkMessages/BulkMessages.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#include <ArduinoJson.h>
1212

1313
// Initialize Wifi connection to the router
14-
char ssid[] = "xxxxxxx"; // your network SSID (name)
15-
char password[] = "yyyyyyyy"; // your network key
14+
char ssid[] = "XXXXXX"; // your network SSID (name)
15+
char password[] = "YYYYYY"; // your network key
1616

1717
// Initialize Telegram BOT
1818
#define BOTtoken "XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" // your Bot Token (Get from Botfather)

examples/ESP8266/CustomKeyboard/ReplyKeyboardMarkup.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include <UniversalTelegramBot.h>
1010

1111
// Initialize Wifi connection to the router
12-
char ssid[] = "xxxxxxx"; // your network SSID (name)
13-
char password[] = "yyyyyyyy"; // your network key
12+
char ssid[] = "XXXXXX"; // your network SSID (name)
13+
char password[] = "YYYYYY"; // your network key
1414

1515
// Initialize Telegram BOT
1616
#define BOTtoken "XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" // your Bot Token (Get from Botfather)

examples/ESP8266/EchoBot/EchoBot.ino

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,13 @@
44
* written by Giacarlo Bacchio (Gianbacchio on Github) *
55
* adapted by Brian Lough *
66
*******************************************************************/
7-
8-
97
#include <ESP8266WiFi.h>
108
#include <WiFiClientSecure.h>
119
#include <UniversalTelegramBot.h>
1210

13-
1411
// Initialize Wifi connection to the router
15-
char ssid[] = "xxxxxxxxxxxxxxxxxxxxxxxx"; // your network SSID (name)
16-
char password[] = "yyyyyyyyy"; // your network key
17-
18-
12+
char ssid[] = "XXXXXX"; // your network SSID (name)
13+
char password[] = "YYYYYY"; // your network key
1914

2015
// Initialize Telegram BOT
2116
#define BOTtoken "XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" // your Bot Token (Get from Botfather)
@@ -26,7 +21,6 @@ UniversalTelegramBot bot(BOTtoken, client);
2621
int Bot_mtbs = 1000; //mean time between scan messages
2722
long Bot_lasttime; //last time messages' scan has been done
2823

29-
3024
void setup() {
3125

3226
Serial.begin(115200);

examples/ESP8266/FlashledBot/FlashledBot.ino

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,13 @@
55
* written by Giacarlo Bacchio (Gianbacchio on Github) *
66
* adapted by Brian Lough *
77
*******************************************************************/
8-
98
#include <ESP8266WiFi.h>
109
#include <WiFiClientSecure.h>
1110
#include <UniversalTelegramBot.h>
1211

13-
1412
// Initialize Wifi connection to the router
15-
char ssid[] = "xxxxxxxxxxxxxxxxxxxxxx"; // your network SSID (name)
16-
char password[] = "yyyyyyyy"; // your network key
17-
18-
19-
20-
const int ledPin = 13;
13+
char ssid[] = "XXXXXX"; // your network SSID (name)
14+
char password[] = "YYYYYY"; // your network key
2115

2216
// Initialize Telegram BOT
2317
#define BOTtoken "XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" // your Bot Token (Get from Botfather)
@@ -28,6 +22,8 @@ UniversalTelegramBot bot(BOTtoken, client);
2822
int Bot_mtbs = 1000; //mean time between scan messages
2923
long Bot_lasttime; //last time messages' scan has been done
3024
bool Start = false;
25+
26+
const int ledPin = 13;
3127
int ledStatus = 0;
3228

3329
void handleNewMessages(int numNewMessages) {

0 commit comments

Comments
 (0)