OpenSDK
V4.2.0
|
类型定义 | |
typedef void(CALLBACK * | OpenSDK_Push_MessageHandler) (const char *szDesc, const char *szContent, const char *szDetail, void *pUser) |
告警消息推送回调函数 更多... | |
函数 | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Push_SetAlarmCallBack (OpenSDK_Push_MessageHandler pHandle, void *pUser) |
设置告警推送回调 更多... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Push_SetDeviceStatusCallBack (OpenSDK_Push_MessageHandler pHandle, void *pUser) |
设置设备下线状态推送 更多... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Push_SetTransparentChannelCallBack (OpenSDK_Push_MessageHandler pHandle, void *pUser) |
设置设备透明通道推送 更多... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Push_StartRecvEx (const char *szPushSecret) |
开启接收推送, 不推荐应用在服务器端上 更多... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Push_StopRecv () |
关闭接收推送 更多... | |
typedef void(CALLBACK * OpenSDK_Push_MessageHandler) (const char *szDesc, const char *szContent, const char *szDetail, void *pUser) |
告警消息推送回调函数
szDesc | 推送描述信息 |
szContent | 推送内容 |
szDetail | 完整的推送信息 |
pUser | 用户自定义数据 |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_SetAlarmCallBack | ( | OpenSDK_Push_MessageHandler | pHandle, |
void * | pUser | ||
) |
设置告警推送回调
[in] | pHandle | 告警推送函数 |
[in] | pUser | 用户自定义数据,回调函数会原样抛出 |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_SetDeviceStatusCallBack | ( | OpenSDK_Push_MessageHandler | pHandle, |
void * | pUser | ||
) |
设置设备下线状态推送
[in] | pHandle | 设备状态推送函数 |
[in] | pUser | 用户自定义数据,回调函数会原样抛出 |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_SetTransparentChannelCallBack | ( | OpenSDK_Push_MessageHandler | pHandle, |
void * | pUser | ||
) |
设置设备透明通道推送
[in] | handle | 告警推送函数 |
[in] | publishHandle | 推送消息函数 |
[in] | pUser | 用户自定义数据,回调函数会原样抛出 |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_StartRecvEx | ( | const char * | szPushSecret | ) |
开启接收推送, 不推荐应用在服务器端上
[in] | szPushSecret | 接入Push所使用密钥,创建应用的时候有平台生成 |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_StopRecv | ( | ) |
关闭接收推送