Skip to content

Commit cc201c4

Browse files
authored
feat: add device_id as unique identifier (#776)
1 parent 20b728a commit cc201c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/ZgatewayPilight.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void pilightCallback(const String& protocol, const String& message, int status,
5252
if (!strlen(device_id)) {
5353
// deviceID returned from Pilight is only extracted from id field
5454
// but some device may use another name as unique identifier
55-
char* choices[] = {"key", "unit", "systemcode", "unitcode", "programcode"};
55+
char* choices[] = {"key", "unit", "device_id", "systemcode", "unitcode", "programcode"};
5656

5757
for (uint8_t i = 0; i < 5; i++) {
5858
if (msg[choices[i]]) {

0 commit comments

Comments
 (0)