updated message handlers

This commit is contained in:
strawmanbobi
2024-10-23 17:48:02 +08:00
parent c70238b569
commit 8e3d25fea5
6 changed files with 105 additions and 31 deletions

View File

@@ -33,6 +33,7 @@ typedef enum {
RECIPIENT_STATUS_READY_TO_STUDY = 1,
RECIPIENT_STATUS_STUDIED = 2,
RECIPIENT_STATUS_UPLOADED = 3,
RECIPIENT_STATUS_CANCEL_STUDY = 4,
RECIPIENT_STATUS_TEST = 10,
RECIPIENT_STATUS_MAX = 63,
} kit_status_t;
@@ -53,6 +54,8 @@ typedef enum {
#define EVENT_NOTIFY_RESP "__notify_response"
#define NOTIFY_RESP_TEST "test_ok"
#define NOTIFY_RECV_PREPARED "recv_prepared"
#define NOTIFY_STUDY_CANCELLED "study_cancelled"
typedef int (*eventHandler)(String, String, String);
typedef struct {