Skip to content

Commit 211637a

Browse files
author
Mattia Bertorello
committed
Add device id getter to improve the debugging of the cloud infrastructure
and also add the thing id getter
1 parent e331415 commit 211637a

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() { return _thing_id; };
56+
inline String getDeviceId() { 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)