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:
TheJackiMonster 2023-05-01 22:19:00 +02:00
parent 754b5c131a
commit 4f061d1687
No known key found for this signature in database
GPG key ID: D850A5F772E880F9
6 changed files with 153 additions and 52 deletions

View file

@ -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;