Skip to content

Commit 4013b36

Browse files
committed
Renaming 'setDeviceId' to 'setDeviceLoginName' and 'setPassword' to 'setSecretDeviceKey'
1 parent c961a6f commit 4013b36

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/ArduinoIoTCloud_ESP8266/thingProperties.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ bool led;
1010

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

src/ArduinoIoTCloud.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ class ArduinoIoTCloudClass {
113113
_thing_id = thing_id;
114114
};
115115
#ifdef BOARD_ESP
116-
inline void setDeviceId(String const device_id) {
116+
inline void setDeviceLoginName(String const device_id) {
117117
_device_id = device_id;
118118
}
119-
inline void setPassword(String const password) {
119+
inline void setSecretDeviceKey(String const password) {
120120
_password = password;
121121
}
122122
#endif

0 commit comments

Comments
 (0)