OpenSDK
V4.2.0
|
Typedefs | |
typedef void(CALLBACK * | OpenSDK_Push_MessageHandler) (const char *szDesc, const char *szContent, const char *szDetail, void *pUser) |
Alarm notification callback function. More... | |
Functions | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Push_SetAlarmCallBack (OpenSDK_Push_MessageHandler pHandle, void *pUser) |
Set alarm notification callback. More... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Push_SetDeviceStatusCallBack (OpenSDK_Push_MessageHandler pHandle, void *pUser) |
Set device online/ offline notification. More... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Push_SetTransparentChannelCallBack (OpenSDK_Push_MessageHandler pHandle, void *pUser) |
Set device online/ offline notification. More... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Push_StartRecvEx (const char *szPushSecret) |
Start receiving alarm. More... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Push_StopRecv () |
Stop receiving alarm. More... | |
typedef void(CALLBACK * OpenSDK_Push_MessageHandler) (const char *szDesc, const char *szContent, const char *szDetail, void *pUser) |
Alarm notification callback function.
szDesc | Description |
szContent | Content |
szDetail | Whole message |
pUser | User-defined data |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_SetAlarmCallBack | ( | OpenSDK_Push_MessageHandler | pHandle, |
void * | pUser | ||
) |
Set alarm notification callback.
[in] | pHandle | Alarm notification founction |
[in] | pUser | User-defined data, callback function will be thrown out. |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_SetDeviceStatusCallBack | ( | OpenSDK_Push_MessageHandler | pHandle, |
void * | pUser | ||
) |
Set device online/ offline notification.
[in] | pHandle | Device status notification function |
[in] | pUser | User-defined data, callback function will be thrown out. |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_SetTransparentChannelCallBack | ( | OpenSDK_Push_MessageHandler | pHandle, |
void * | pUser | ||
) |
Set device online/ offline notification.
[in] | handle | Alarm notification function |
[in] | publishHandle | Notification function |
[in] | pUser | User-defined data, callback function will be thrown out. |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_StartRecvEx | ( | const char * | szPushSecret | ) |
Start receiving alarm.
[in] | szAccessToken | Verification Token |
[in] | szPushSecret | Access the key used by Push, system will generate when creating application. |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_StopRecv | ( | ) |
Stop receiving alarm.