Skip to content

Commit 12479b2

Browse files
authored
fix sha1 fingerprint for io.adafruit.com (#143)
* fix sha1 fingerprint for io.adafruit.com * bump library version * add terminating character
1 parent 07c9ae7 commit 12479b2

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

examples/adafruitio_secure_esp8266/adafruitio_secure_esp8266.ino

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@
2222

2323
/************************* WiFi Access Point *********************************/
2424

25-
#define WLAN_SSID "...your SSID..."
26-
#define WLAN_PASS "...your password..."
25+
#define WLAN_SSID "WLAN_SSID"
26+
#define WLAN_PASS "WIFI_PASSWORD"
2727

2828
/************************* Adafruit.io Setup *********************************/
2929

3030
#define AIO_SERVER "io.adafruit.com"
31-
#define AIO_SERVERPORT 8883 // 8883 for MQTTS
32-
#define AIO_USERNAME "...your AIO username (see https://accounts.adafruit.com)..."
33-
#define AIO_KEY "...your AIO key..."
31+
// Using port 8883 for MQTTS
32+
#define AIO_SERVERPORT 8883
33+
// Adafruit IO Account Configuration
34+
// (to obtain these values, visit https://io.adafruit.com and click on Active Key)
35+
#define AIO_USERNAME "YOUR_ADAFRUIT_IO_USERNAME"
36+
#define AIO_KEY "YOUR_ADAFRUIT_IO_KEY"
3437

3538
/************ Global State (you don't need to change this!) ******************/
3639

@@ -41,7 +44,7 @@ WiFiClientSecure client;
4144
Adafruit_MQTT_Client mqtt(&client, AIO_SERVER, AIO_SERVERPORT, AIO_USERNAME, AIO_KEY);
4245

4346
// io.adafruit.com SHA1 fingerprint
44-
const char* fingerprint = "AD 4B 64 B3 67 40 B5 FC 0E 51 9B BD 25 E9 7F 88 B6 2A A3 5B";
47+
const char *fingerprint = "77 00 54 2D DA E7 D8 03 27 31 23 99 EB 27 DB CB A5 4C 57 18";
4548

4649
/****************************** Feeds ***************************************/
4750

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit MQTT Library
2-
version=0.20.3
2+
version=0.20.4
33
author=Adafruit
44
maintainer=Adafruit <info@adafruit.com>
55
sentence=MQTT library that supports the FONA, ESP8266, Yun, and generic Arduino Client hardware.

0 commit comments

Comments
 (0)