feat: add device_id as unique identifier (#776)

This commit is contained in:
Charles R authored and GitHub committed 2020-10-13 15:17:40 -05:00
1 parent 20b728a773
commit cc201c490c
1 file changed
+1 -1
+1 -1
View File
@@ -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]]) {