32 lines
523 B
C
Executable File
32 lines
523 B
C
Executable File
#ifndef __SYSTEM_CLIENT_H__
|
|
#define __SYSTEM_CLIENT_H__
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
typedef enum
|
|
{
|
|
NULL_MSG = 0,
|
|
MSG_ENTER_POWER_SAVE,
|
|
MSG_EXIT_POWER_SAVE,
|
|
MSG_AGORA,
|
|
MSG_CLOSE_BLE,
|
|
MSG_SEND_PHOTO,
|
|
} SystemMessageType;
|
|
|
|
typedef struct
|
|
{
|
|
SystemMessageType type;
|
|
int len;
|
|
uint8_t *msg;
|
|
} SystemMessage;
|
|
|
|
|
|
void system_client_start();
|
|
void system_start_ota_timer();
|
|
void system_client_do(SystemMessageType msg);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif |