completed iris event handler framework

This commit is contained in:
strawmanbobi
2022-05-03 18:48:48 +08:00
parent 3d34e57a4c
commit 5261a68c14
4 changed files with 87 additions and 9 deletions

View File

@@ -37,6 +37,12 @@
#define EVENT_NAME_CONNECT "__connect"
#define EVENT_HEART_BEAT_REQ "__hb_request"
typedef int (*eventHandler)(const char* payload, int length);
typedef struct {
const char* event_name;
eventHandler handler;
} event_handler_t;
int getIRISKitVersion(char *buffer, int buffer_size);
int getDeviceID(char* buffer, int buffer_size);