File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 32
32
/* ************************ Adafruit.io Setup *********************************/
33
33
34
34
#define AIO_SERVER " io.adafruit.com"
35
- #define AIO_SERVERPORT 1883
35
+ #define AIO_SERVERPORT 1883 // use 8883 for SSL
36
36
#define AIO_USERNAME " ...your AIO username (see https://accounts.adafruit.com)..."
37
37
#define AIO_KEY " ...your AIO key..."
38
38
39
39
/* *********** Global State (you don't need to change this!) ******************/
40
40
41
41
// Create an ESP8266 WiFiClient class to connect to the MQTT server.
42
42
WiFiClient client;
43
+ // or... use WiFiFlientSecure for SSL
44
+ // WiFiClientSecure client;
43
45
44
46
// Store the MQTT server, username, and password in flash memory.
45
47
// This is required for using the Adafruit MQTT library.
Original file line number Diff line number Diff line change 27
27
/* ************************ Adafruit.io Setup *********************************/
28
28
29
29
#define AIO_SERVER " io.adafruit.com"
30
- #define AIO_SERVERPORT 1883
30
+ #define AIO_SERVERPORT 1883 // use 8883 for SSL
31
31
#define AIO_USERNAME " ...your AIO username (see https://accounts.adafruit.com)..."
32
32
#define AIO_KEY " ...your AIO key..."
33
33
34
34
/* *********** Global State (you don't need to change this!) ******************/
35
35
36
36
// Create an ESP8266 WiFiClient class to connect to the MQTT server.
37
37
WiFiClient client;
38
+ // or... use WiFiFlientSecure for SSL
39
+ // WiFiClientSecure client;
38
40
39
41
// Store the MQTT server, username, and password in flash memory.
40
42
// This is required for using the Adafruit MQTT library.
You can’t perform that action at this time.
0 commit comments