Skip to content

Commit e4d5d77

Browse files
authored
Merge pull request wled#4114 from ChuckMash/struct-def
Demystified some byte definitions of WiZmote ESP-NOW message
2 parents 0bbd6b7 + dd52124 commit e4d5d77

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

wled00/remote.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
typedef struct WizMoteMessageStructure {
2626
uint8_t program; // 0x91 for ON button, 0x81 for all others
2727
uint8_t seq[4]; // Incremetal sequence number 32 bit unsigned integer LSB first
28-
uint8_t byte5; // Unknown (seen 0x20)
28+
uint8_t dt1; // Button Data Type (0x32)
2929
uint8_t button; // Identifies which button is being pressed
30-
uint8_t byte8; // Unknown, but always 0x01
31-
uint8_t byte9; // Unnkown, but always 0x64
32-
30+
uint8_t dt2; // Battery Level Data Type (0x01)
31+
uint8_t batLevel; // Battery Level 0-100
32+
3333
uint8_t byte10; // Unknown, maybe checksum
3434
uint8_t byte11; // Unknown, maybe checksum
3535
uint8_t byte12; // Unknown, maybe checksum
@@ -225,4 +225,4 @@ void handleRemote(uint8_t *incomingData, size_t len) {
225225

226226
#else
227227
void handleRemote(uint8_t *incomingData, size_t len) {}
228-
#endif
228+
#endif

0 commit comments

Comments
 (0)