Skip to content

Commit 93a13be

Browse files
committed
chore: refactor device id handling
- Migrate from `sn` to `_arduino_device_id`
1 parent c72dfdb commit 93a13be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NotecardConnectionHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ bool NotecardConnectionHandler::updateUidCache (void)
774774
result = false;
775775
} else {
776776
_notecard_uid = JGetString(rsp, "device");
777-
_device_id = JGetString(rsp, "sn");
777+
_device_id = JGetString(rsp, "_arduino_device_id");
778778
_device_id = (_device_id.length() ? _device_id : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx");
779779
Debug.print(DBG_DEBUG, F("NotecardConnectionHandler::%s updated cache with Notecard UID: <%s> and Arduino Device ID: <%s>"), __FUNCTION__, _notecard_uid.c_str(), _device_id.c_str());
780780
result = true;

src/NotecardConnectionHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
******************************************************************************/
2929

3030
#define NOTECARD_CONNECTION_HANDLER_VERSION_MAJOR 1
31-
#define NOTECARD_CONNECTION_HANDLER_VERSION_MINOR 0
31+
#define NOTECARD_CONNECTION_HANDLER_VERSION_MINOR 1
3232
#define NOTECARD_CONNECTION_HANDLER_VERSION_PATCH 1
3333

3434
#define NOTECARD_CONNECTION_HANDLER_VERSION NOTE_C_STRINGIZE(NOTECARD_CONNECTION_HANDLER_VERSION_MAJOR) "." NOTE_C_STRINGIZE(NOTECARD_CONNECTION_HANDLER_VERSION_MINOR) "." NOTE_C_STRINGIZE(NOTECARD_CONNECTION_HANDLER_VERSION_PATCH)

0 commit comments

Comments
 (0)