Cloud
Cloud Manager
Header File -
quick_dev/app_ref/cloud_template/cloud_ctrl.h
API List -
Functions -
Cloud_TimerStart
- Prototype
void Cloud_TimerStart(T_CloudTimerIdx tTmrIdx, uint32_t u32TimeMs);
- Description
Start timer function
- Return
None
- Parameters
tTmrIdx: timer index
u32TimeMs: timer time in ms
Cloud_TimerStop
- Prototype
void Cloud_TimerStop(T_CloudTimerIdx tTmrIdx);
- Description
Stop timer function
- Return
None
- Parameters
tTmrIdx: timer index
Cloud_InitHandler
- Prototype
void Cloud_InitHandler(uint32_t u32EventId, void *pData, uint32_t u32DataLen);
- Description
Cloud init event handler
- Return
None
- Parameters
u32EventId: event ID
pData: message data
u32DataLen: message data lens
Cloud_EstablishHandler
- Prototype
void Cloud_EstablishHandler(uint32_t u32EventId, void *pData, uint32_t u32DataLen);
- Description
Establish connection event handler
- Return
None
- Parameters
u32EventId: event ID
pData: message data
u32DataLen: message data lens
Cloud_DisconnectHandler
- Prototype
void Cloud_DisconnectHandler(uint32_t u32EventId, void *pData, uint32_t u32DataLen);
- Description
Cloud disconnection event handler
- Return
None
- Parameters
u32EventId: event ID
pData: message data
u32DataLen: message data lens
Cloud_TimeoutHandler
- Prototype
void Cloud_TimeoutHandler(uint32_t u32EventId, void *pData, uint32_t u32DataLen);
- Description
Timeout event handler from timer
- Return
None
- Parameters
u32EventId: event ID
pData: message data
u32DataLen: message data lens
Cloud_BindingHandler
- Prototype
void Cloud_BindingHandler(uint32_t u32EventId, void *pData, uint32_t u32DataLen);
- Description
Binding request event handler
- Return
None
- Parameters
u32EventId: event ID
pData: message data
u32DataLen: message data lens
Cloud_KeepAliveHandler
- Prototype
void Cloud_KeepAliveHandler(uint32_t u32EventId, void *pData, uint32_t u32DataLen);
- Description
Post keep alive event handler
- Return
None
- Parameters
u32EventId: event ID
pData: message data
u32DataLen: message data lens
Cloud_AckHandler
- Prototype
void Cloud_AckHandler(uint32_t u32EventId, void *pData, uint32_t u32DataLen);
- Description
Post ack event handler
- Return
None
- Parameters
u32EventId: event ID
pData: message data
u32DataLen: message data lens
Cloud_PostHandler
- Prototype
void Cloud_PostHandler(uint32_t u32EventId, void *pData, uint32_t u32DataLen);
- Description
Post data event handler
- Return
None
- Parameters
u32EventId: event ID
pData: message data
u32DataLen: message data lens
Cloud_BackupRingBufInit
- Prototype
void Cloud_BackupRingBufInit(void);
Warning
CLOUD_TX_DATA_BACKUP_ENABLED must required
- Description
Init ring buffers (will be called at Cloud_Init())
- Return
None
- Parameters
None
Cloud_PostBackupHandler
- Prototype
void Cloud_PostBackupHandler(uint32_t u32EventId, void *pData, uint32_t u32DataLen);
Warning
CLOUD_TX_DATA_BACKUP_ENABLED must required
- Description
Post the back up data event handler
- Return
None
- Parameters
u32EventId: event ID
pData: message data
u32DataLen: message data lens
Cloud_ReceiveHandler
- Prototype
void Cloud_ReceiveHandler(void);
- Description
Received data from cloud handler
- Return
None
- Parameters
None