Skip to content

Commit f560f7a

Browse files
committed
Added getHardwareEui()
1 parent 40793f5 commit f560f7a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/TheThingsNetwork.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,11 @@ TheThingsNetwork::TheThingsNetwork(Stream &modemStream, Stream &debugStream, ttn
292292
this->fsb = fsb;
293293
}
294294

295+
size_t TheThingsNetwork::getHardwareEui(char *buffer, size_t size)
296+
{
297+
return readResponse(SYS_TABLE, SYS_TABLE, SYS_GET_HWEUI, buffer, size);
298+
}
299+
295300
void TheThingsNetwork::debugPrintIndex(uint8_t index, const char *value)
296301
{
297302
char message[100];

src/TheThingsNetwork.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class TheThingsNetwork
6868
public:
6969
TheThingsNetwork(Stream &modemStream, Stream &debugStream, ttn_fp_t fp, uint8_t sf = TTN_DEFAULT_SF, uint8_t fsb = TTN_DEFAULT_FSB);
7070
void showStatus();
71+
size_t getHardwareEui(char *buffer, size_t size);
7172
void onMessage(void (*cb)(const uint8_t *payload, size_t size, port_t port));
7273
bool provision(const char *appEui, const char *appKey);
7374
bool join(const char *appEui, const char *appKey, int8_t retries = -1, uint32_t retryDelay = 10000);

0 commit comments

Comments
 (0)