Fix device4 payloads, adjust naming, complete its packet structure and request firmware versions
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
754b5c131a
commit
4f061d1687
6 changed files with 153 additions and 52 deletions
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
void test4(uint32_t timestamp,
|
||||
void test4(uint64_t timestamp,
|
||||
device4_event_type event,
|
||||
uint8_t brightness,
|
||||
const char* msg) {
|
||||
|
@ -34,9 +34,6 @@ void test4(uint32_t timestamp,
|
|||
case DEVICE4_EVENT_MESSAGE:
|
||||
printf("Message: `%s`\n", msg);
|
||||
break;
|
||||
case DEVICE4_EVENT_BRIGHTNESS_SET:
|
||||
printf("Set Brightness: %u\n", brightness);
|
||||
break;
|
||||
case DEVICE4_EVENT_BRIGHTNESS_UP:
|
||||
printf("Increase Brightness: %u\n", brightness);
|
||||
break;
|
||||
|
|
Reference in a new issue