File tree Expand file tree Collapse file tree 4 files changed +10
-20
lines changed Expand file tree Collapse file tree 4 files changed +10
-20
lines changed Original file line number Diff line number Diff line change 11
11
#include < ArduinoJson.h>
12
12
13
13
// 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
16
16
17
17
// Initialize Telegram BOT
18
18
#define BOTtoken " XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" // your Bot Token (Get from Botfather)
Original file line number Diff line number Diff line change 9
9
#include < UniversalTelegramBot.h>
10
10
11
11
// 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
14
14
15
15
// Initialize Telegram BOT
16
16
#define BOTtoken " XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" // your Bot Token (Get from Botfather)
Original file line number Diff line number Diff line change 4
4
* written by Giacarlo Bacchio (Gianbacchio on Github) *
5
5
* adapted by Brian Lough *
6
6
*******************************************************************/
7
-
8
-
9
7
#include < ESP8266WiFi.h>
10
8
#include < WiFiClientSecure.h>
11
9
#include < UniversalTelegramBot.h>
12
10
13
-
14
11
// 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
19
14
20
15
// Initialize Telegram BOT
21
16
#define BOTtoken " XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" // your Bot Token (Get from Botfather)
@@ -26,7 +21,6 @@ UniversalTelegramBot bot(BOTtoken, client);
26
21
int Bot_mtbs = 1000 ; // mean time between scan messages
27
22
long Bot_lasttime; // last time messages' scan has been done
28
23
29
-
30
24
void setup () {
31
25
32
26
Serial.begin (115200 );
Original file line number Diff line number Diff line change 5
5
* written by Giacarlo Bacchio (Gianbacchio on Github) *
6
6
* adapted by Brian Lough *
7
7
*******************************************************************/
8
-
9
8
#include < ESP8266WiFi.h>
10
9
#include < WiFiClientSecure.h>
11
10
#include < UniversalTelegramBot.h>
12
11
13
-
14
12
// 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
21
15
22
16
// Initialize Telegram BOT
23
17
#define BOTtoken " XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" // your Bot Token (Get from Botfather)
@@ -28,6 +22,8 @@ UniversalTelegramBot bot(BOTtoken, client);
28
22
int Bot_mtbs = 1000 ; // mean time between scan messages
29
23
long Bot_lasttime; // last time messages' scan has been done
30
24
bool Start = false ;
25
+
26
+ const int ledPin = 13 ;
31
27
int ledStatus = 0 ;
32
28
33
29
void handleNewMessages (int numNewMessages) {
You can’t perform that action at this time.
0 commit comments