Skip to content

Commit c961a6f

Browse files
committed
Renaming 'DEVICE_ID' to 'DEVICE_LOGIN_NAME' and 'SECRET_DEVICE_PASS' to 'SECRET_DEVICE_KEY'
1 parent bd7eecd commit c961a6f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/ArduinoIoTCloud_ESP8266/arduino_secrets.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
#define SECRET_SSID "my-wifi-ssid"
44
#define SECRET_PASS "my-wifi-password"
5-
#define SECRET_DEVICE_PASS "my-device-password" /* Password set via IoT API */
5+
#define SECRET_DEVICE_KEY "my-device-password"

examples/ArduinoIoTCloud_ESP8266/thingProperties.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
#include <Arduino_ConnectionHandler.h>
33

44
#define THING_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" /* "Thing ID" when selecting thing within Arduino Create */
5-
#define DEVICE_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" /* Entry "Board ID" when selecting board within Arduino Create */
5+
#define DEVICE_LOGIN_NAME "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
66

77
void onLedChange();
88

99
bool led;
1010

1111
void initProperties() {
1212
ArduinoCloud.setThingId(THING_ID);
13-
ArduinoCloud.setDeviceId(DEVICE_ID);
14-
ArduinoCloud.setPassword(SECRET_DEVICE_PASS);
13+
ArduinoCloud.setDeviceId(DEVICE_LOGIN_NAME);
14+
ArduinoCloud.setPassword(SECRET_DEVICE_KEY);
1515
ArduinoCloud.addProperty(led, READWRITE, ON_CHANGE, onLedChange);
1616
}
1717

0 commit comments

Comments
 (0)