From dd5212476512b3fae88ec6aca6561f4057e60dd4 Mon Sep 17 00:00:00 2001 From: ChuckMash <86080247+ChuckMash@users.noreply.github.com> Date: Thu, 22 Aug 2024 20:24:03 -0700 Subject: [PATCH] Added some byte definitions to WiZmote ESP-NOW message --- wled00/remote.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wled00/remote.cpp b/wled00/remote.cpp index 9c8d67d0d9..9d8b94df02 100644 --- a/wled00/remote.cpp +++ b/wled00/remote.cpp @@ -25,11 +25,11 @@ typedef struct WizMoteMessageStructure { uint8_t program; // 0x91 for ON button, 0x81 for all others uint8_t seq[4]; // Incremetal sequence number 32 bit unsigned integer LSB first - uint8_t byte5; // Unknown (seen 0x20) + uint8_t dt1; // Button Data Type (0x32) uint8_t button; // Identifies which button is being pressed - uint8_t byte8; // Unknown, but always 0x01 - uint8_t byte9; // Unnkown, but always 0x64 - + uint8_t dt2; // Battery Level Data Type (0x01) + uint8_t batLevel; // Battery Level 0-100 + uint8_t byte10; // Unknown, maybe checksum uint8_t byte11; // Unknown, maybe checksum uint8_t byte12; // Unknown, maybe checksum @@ -225,4 +225,4 @@ void handleRemote(uint8_t *incomingData, size_t len) { #else void handleRemote(uint8_t *incomingData, size_t len) {} -#endif \ No newline at end of file +#endif