You've already forked Adafruit_MQTT_Library
mirror of
https://github.com/adafruit/Adafruit_MQTT_Library.git
synced 2025-07-29 02:02:00 +03:00
added ssl option & details
This commit is contained in:
@ -32,7 +32,7 @@
|
|||||||
/************************* Adafruit.io Setup *********************************/
|
/************************* Adafruit.io Setup *********************************/
|
||||||
|
|
||||||
#define AIO_SERVER "io.adafruit.com"
|
#define AIO_SERVER "io.adafruit.com"
|
||||||
#define AIO_SERVERPORT 1883
|
#define AIO_SERVERPORT 1883 // use 8883 for SSL
|
||||||
#define AIO_USERNAME "...your AIO username (see https://accounts.adafruit.com)..."
|
#define AIO_USERNAME "...your AIO username (see https://accounts.adafruit.com)..."
|
||||||
#define AIO_KEY "...your AIO key..."
|
#define AIO_KEY "...your AIO key..."
|
||||||
|
|
||||||
@ -40,6 +40,8 @@
|
|||||||
|
|
||||||
// Create an ESP8266 WiFiClient class to connect to the MQTT server.
|
// Create an ESP8266 WiFiClient class to connect to the MQTT server.
|
||||||
WiFiClient client;
|
WiFiClient client;
|
||||||
|
// or... use WiFiFlientSecure for SSL
|
||||||
|
//WiFiClientSecure client;
|
||||||
|
|
||||||
// Store the MQTT server, username, and password in flash memory.
|
// Store the MQTT server, username, and password in flash memory.
|
||||||
// This is required for using the Adafruit MQTT library.
|
// This is required for using the Adafruit MQTT library.
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
/************************* Adafruit.io Setup *********************************/
|
/************************* Adafruit.io Setup *********************************/
|
||||||
|
|
||||||
#define AIO_SERVER "io.adafruit.com"
|
#define AIO_SERVER "io.adafruit.com"
|
||||||
#define AIO_SERVERPORT 1883
|
#define AIO_SERVERPORT 1883 // use 8883 for SSL
|
||||||
#define AIO_USERNAME "...your AIO username (see https://accounts.adafruit.com)..."
|
#define AIO_USERNAME "...your AIO username (see https://accounts.adafruit.com)..."
|
||||||
#define AIO_KEY "...your AIO key..."
|
#define AIO_KEY "...your AIO key..."
|
||||||
|
|
||||||
@ -35,6 +35,8 @@
|
|||||||
|
|
||||||
// Create an ESP8266 WiFiClient class to connect to the MQTT server.
|
// Create an ESP8266 WiFiClient class to connect to the MQTT server.
|
||||||
WiFiClient client;
|
WiFiClient client;
|
||||||
|
// or... use WiFiFlientSecure for SSL
|
||||||
|
//WiFiClientSecure client;
|
||||||
|
|
||||||
// Store the MQTT server, username, and password in flash memory.
|
// Store the MQTT server, username, and password in flash memory.
|
||||||
// This is required for using the Adafruit MQTT library.
|
// This is required for using the Adafruit MQTT library.
|
||||||
|
Reference in New Issue
Block a user