Skip to content

Commit 83ff24d

Browse files
authored
Merge pull request #19 from bcmi-labs/add-device-id-getter
Add device id getter
2 parents 0cae137 + 13e4d7f commit 83ff24d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ArduinoIoTCloud.h

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class ArduinoIoTCloudClass {
5252

5353
inline void setThingId(String const thing_id) { _thing_id = thing_id; };
5454

55+
inline String getThingId() const { return _thing_id; };
56+
inline String getDeviceId() const { return _id; };
57+
5558
#define addProperty( v, ...) addPropertyReal(v, #v, __VA_ARGS__)
5659

5760
static unsigned long const DEFAULT_MIN_TIME_BETWEEN_UPDATES_MILLIS = 100; /* Data rate throttled to 10 Hz */

0 commit comments

Comments
 (0)