feat: add device_id as unique identifier (#776)
This commit is contained in:
1 parent
20b728a773
commit
cc201c490c
1 file changed
+1
-1
@@ -52,7 +52,7 @@ void pilightCallback(const String& protocol, const String& message, int status,
|
||||
if (!strlen(device_id)) {
|
||||
// deviceID returned from Pilight is only extracted from id field
|
||||
// but some device may use another name as unique identifier
|
||||
char* choices[] = {"key", "unit", "systemcode", "unitcode", "programcode"};
|
||||
char* choices[] = {"key", "unit", "device_id", "systemcode", "unitcode", "programcode"};
|
||||
|
||||
for (uint8_t i = 0; i < 5; i++) {
|
||||
if (msg[choices[i]]) {
|
||||
|
||||
Reference in new issue
Block a user