File tree 15 files changed +130
-72
lines changed
libraries/ESP8266WiFi/examples
15 files changed +130
-72
lines changed Original file line number Diff line number Diff line change 37
37
#include < CertStoreBearSSL.h>
38
38
#include < time.h>
39
39
40
- #ifndef SSID
41
- #define SSID " your-ssid"
40
+ #ifndef STASSID
41
+ #define STASSID " your-ssid"
42
42
#define PSK " your-password"
43
43
#endif
44
44
45
- const char *ssid = SSID ;
45
+ const char *ssid = STASSID ;
46
46
const char *pass = PSK;
47
47
48
48
// A single, global CertStore which can be used by all
Original file line number Diff line number Diff line change 6
6
7
7
#include < ESP8266WiFi.h>
8
8
9
- #ifndef SSID
10
- #define SSID " your-ssid"
9
+ #ifndef STASSID
10
+ #define STASSID " your-ssid"
11
11
#define PSK " your-password"
12
12
#endif
13
13
14
- const char *ssid = SSID ;
14
+ const char *ssid = STASSID ;
15
15
const char *pass = PSK;
16
16
17
17
void fetch (BearSSL::WiFiClientSecure *client) {
Original file line number Diff line number Diff line change 37
37
#include < ESP8266WiFi.h>
38
38
#include < time.h>
39
39
40
- #ifndef SSID
41
- #define SSID " your-ssid"
40
+ #ifndef STASSID
41
+ #define STASSID " your-ssid"
42
42
#define PSK " your-password"
43
43
#endif
44
44
45
- const char *ssid = SSID ;
45
+ const char *ssid = STASSID ;
46
46
const char *pass = PSK;
47
47
48
48
// The HTTPS server
Original file line number Diff line number Diff line change 65
65
#include < ESP8266WiFi.h>
66
66
#include < time.h>
67
67
68
- #ifndef SSID
69
- #define SSID " your-ssid"
68
+ #ifndef STASSID
69
+ #define STASSID " your-ssid"
70
70
#define PSK " your-password"
71
71
#endif
72
72
73
- const char *ssid = SSID ;
73
+ const char *ssid = STASSID ;
74
74
const char *pass = PSK;
75
75
76
76
// The server which will require a client cert signed by the trusted CA
Original file line number Diff line number Diff line change 6
6
#include < ESP8266WiFi.h>
7
7
#include < time.h>
8
8
9
- #ifndef SSID
10
- #define SSID " your-ssid"
9
+ #ifndef STASSID
10
+ #define STASSID " your-ssid"
11
11
#define PSK " your-password"
12
12
#endif
13
13
14
- const char *ssid = SSID ;
14
+ const char *ssid = STASSID ;
15
15
const char *pass = PSK;
16
16
17
17
const char * host = " api.github.com" ;
Original file line number Diff line number Diff line change 7
7
#include < ESP8266WiFi.h>
8
8
#include < time.h>
9
9
10
- #ifndef SSID
11
- #define SSID " your-ssid"
10
+ #ifndef STASSID
11
+ #define STASSID " your-ssid"
12
12
#define PSK " your-password"
13
13
#endif
14
14
15
- const char *ssid = SSID ;
15
+ const char *ssid = STASSID ;
16
16
const char *pass = PSK;
17
17
18
18
const char * host = " api.github.com" ;
Original file line number Diff line number Diff line change 19
19
#include < ESP8266WiFi.h>
20
20
#include < WiFiClientSecure.h>
21
21
22
- #ifndef SSID
23
- #define SSID " your-ssid"
22
+ #ifndef STASSID
23
+ #define STASSID " your-ssid"
24
24
#define PSK " your-password"
25
25
#endif
26
26
27
- const char * ssid = SSID ;
27
+ const char * ssid = STASSID ;
28
28
const char * password = PSK;
29
29
30
30
const char * host = " api.github.com" ;
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ using namespace AxTLS;
25
25
// uncomment the line below to run the sketch
26
26
#error Keeping this example for history, watch BearSSL_Validation example instead
27
27
28
- #ifndef SSID
29
- #define SSID " your-ssid"
28
+ #ifndef STASSID
29
+ #define STASSID " your-ssid"
30
30
#define PSK " your-password"
31
31
#endif
32
32
33
- const char * ssid = SSID ;
33
+ const char * ssid = STASSID ;
34
34
const char * password = PSK;
35
35
36
36
const char * host = " api.github.com" ;
Original file line number Diff line number Diff line change 21
21
#include < ESP8266WiFi.h>
22
22
#include < WiFiUdp.h>
23
23
24
- #ifndef SSID
25
- #define SSID " your-ssid"
24
+ #ifndef STASSID
25
+ #define STASSID " your-ssid"
26
26
#define PSK " your-password"
27
27
#endif
28
28
29
- char ssid[] = SSID; // your network SSID (name)
30
- char pass[] = PSK; // your network password
29
+ char ssid[] = STASSID; // your network SSID (name)
30
+ char pass[] = PSK; // your network password
31
31
32
32
33
33
unsigned int localPort = 2390 ; // local port to listen for UDP packets
Original file line number Diff line number Diff line change 5
5
6
6
#include < ESP8266WiFi.h>
7
7
8
- #ifndef SSID
9
- #define SSID " your-ssid"
8
+ #ifndef STASSID
9
+ #define STASSID " your-ssid"
10
10
#define PSK " your-password"
11
11
#endif
12
12
13
- const char * ssid = SSID ;
13
+ const char * ssid = STASSID ;
14
14
const char * password = PSK;
15
15
16
16
const char * host = " djxmmx.net" ;
Original file line number Diff line number Diff line change 7
7
#include < ESP8266WiFi.h>
8
8
#include < ESP8266WiFiMulti.h>
9
9
10
- #ifndef SSID
11
- #define SSID " your-ssid"
10
+ #ifndef STASSID
11
+ #define STASSID " your-ssid"
12
12
#define PSK " your-password"
13
13
#endif
14
14
15
- const char * ssid = SSID ;
15
+ const char * ssid = STASSID ;
16
16
const char * password = PSK;
17
17
18
18
const char * host = " 192.168.1.1" ;
Original file line number Diff line number Diff line change 43
43
44
44
#include < ESP8266WiFi.h>
45
45
46
- #ifndef SSID
47
- #define SSID " your-ssid"
46
+ #ifndef STASSID
47
+ #define STASSID " your-ssid"
48
48
#define PSK " your-password"
49
49
#endif
50
50
51
- const char * ssid = SSID ;
51
+ const char * ssid = STASSID ;
52
52
const char * password = PSK;
53
53
54
54
// The certificate is stored in PMEM
Original file line number Diff line number Diff line change 9
9
10
10
#include < ESP8266WiFi.h>
11
11
12
- #ifndef SSID
13
- #define SSID " your-ssid"
12
+ #ifndef STASSID
13
+ #define STASSID " your-ssid"
14
14
#define PSK " your-password"
15
15
#endif
16
16
17
- const char * ssid = SSID ;
17
+ const char * ssid = STASSID ;
18
18
const char * password = PSK;
19
19
20
20
// Create an instance of the server
You can’t perform that action at this time.
0 commit comments