|
OpenSDK
V4.2.0
|
Functions | |
| OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Data_GetDevListEx (int iPageStart, int iPageSize, void **pBuf, int *iLength) |
| Get camera list. More... | |
| OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Data_GetSharedDevList (int iPageStart, int iPageSize, void **pBuf, int *iLength) |
| Get shared camera list. More... | |
| OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Data_GetDevDetailInfo (const char *szDevSerial, const int iChannelNo, const bool bUpdate, void **pDevDetailInfo, int *iLength) |
| Get device details, including preview level, PTZ, intercom capability level etc. More... | |
| OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Data_GetDeviceInfo (const char *szAccessToken, const char *szDeviceSerial, void **pBuf, int *iLength) |
| Get single device information. More... | |
| OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Data_GetAlarmListEx (const char *szDevSerial, const int iChannelNo, const char *szStartTime, const char *szEndTime, AlarmType iAlarmType, int iStatus, int iPageStart, int iPageSize, void **pBuf, int *iLength) |
| Get alarm list. More... | |
| OPENSDK_API int CALLBACK | OpenSDK_DecryptPicture (const char *szAccessToken, const char *szPicURL, const char *szSerail, const char *szSafeKey, void **pPicBuf, int *iPicLen) |
| Decrypt the alarm picture (calling encrypted picture and downloading unencrypted picture is suggested. Distinguish whether the picture is encrypted via the "isEncrypted=1" in the URL. More... | |
| OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Data_SetAlarmRead (const char *szAccessToken, const char *szAlarmId) |
| Set alarm information as read. More... | |
| OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Data_DeleteDevice (const char *szAccessToken, const char *szDeviceId) |
| Delete device. More... | |
| OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_Data_Free (void *pBuf) |
| Destroy the memory allocated by SDK. More... | |
| OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_DeleteDevice | ( | const char * | szAccessToken, |
| const char * | szDeviceId | ||
| ) |
Delete device.
| [in] | szAccessToken | Verification Token |
| [in] | szDeviceId | Device ID |
| OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_Free | ( | void * | pBuf | ) |
Destroy the memory allocated by SDK.
| [in] | pBuf | Memory allocated by SDK |
| OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetAlarmListEx | ( | const char * | szDevSerial, |
| const int | iChannelNo, | ||
| const char * | szStartTime, | ||
| const char * | szEndTime, | ||
| AlarmType | iAlarmType, | ||
| int | iStatus, | ||
| int | iPageStart, | ||
| int | iPageSize, | ||
| void ** | pBuf, | ||
| int * | iLength | ||
| ) |
Get alarm list.
| [in] | szDevSerial | Device serial No. |
| [in] | iChannelNo | Device channel No. |
| [in] | szStartTime | Start time |
| [in] | szEndTime | End time |
| [in] | iAlarmType | Alarm type, refers to AlarmType |
| [in] | iStatus | Alarm status, 0- unread, 1-read, 2-all |
| [in] | iPageStart | Start page, start from 0 |
| [in] | iPageSize | Page size |
| [out] | pBuf | Alarm information list |
| [out] | iLength | Length of alarm information list |
| OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetDevDetailInfo | ( | const char * | szDevSerial, |
| const int | iChannelNo, | ||
| const bool | bUpdate, | ||
| void ** | pDevDetailInfo, | ||
| int * | iLength | ||
| ) |
Get device details, including preview level, PTZ, intercom capability level etc.
| [in] | szDevSerial | Device serial No. |
| [in] | iChannelNo | Device channel No. |
| [in] | bUpdate | Whether to re-obtain the device details, true: re-take the data from the fluorite platform, otherwise take the cache information. True time for the user to re-login or need to refresh the device information. |
| [out] | pDevDetailInfo | Device detail info, Need to call the OpenSDK_FreeData interface to release |
| [out] | iLength | Device detail length |
| OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetDeviceInfo | ( | const char * | szAccessToken, |
| const char * | szDeviceSerial, | ||
| void ** | pBuf, | ||
| int * | iLength | ||
| ) |
Get single device information.
| [in] | szDeviceSerial | Device serial No. |
| [out] | pBuf | JSON string of device information |
| [out] | iLength | length of the obtained data |
| OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetDevListEx | ( | int | iPageStart, |
| int | iPageSize, | ||
| void ** | pBuf, | ||
| int * | iLength | ||
| ) |
Get camera list.
| [in] | iPageStart | Start page, start from 0 |
| [in] | iPageSize | Page size, Limit 1000, default 100, support small than 100 |
| [out] | pBuf | JSON string of camera list |
| [out] | iLength | length of the pBuf |
| OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetSharedDevList | ( | int | iPageStart, |
| int | iPageSize, | ||
| void ** | pBuf, | ||
| int * | iLength | ||
| ) |
Get shared camera list.
| [in] | iPageStart | Start page, start from 0 |
| [in] | iPageSize | Page size, Limit 1000, default 100, support small than 100 |
| [out] | pBuf | JSON string of camera list |
| [out] | iLength | length of the pBuf |
| OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_SetAlarmRead | ( | const char * | szAccessToken, |
| const char * | szAlarmId | ||
| ) |
Set alarm information as read.
| [in] | szAlarmId | Alarm ID |
| OPENSDK_API int CALLBACK OpenSDK_DecryptPicture | ( | const char * | szAccessToken, |
| const char * | szPicURL, | ||
| const char * | szSerail, | ||
| const char * | szSafeKey, | ||
| void ** | pPicBuf, | ||
| int * | iPicLen | ||
| ) |
Decrypt the alarm picture (calling encrypted picture and downloading unencrypted picture is suggested. Distinguish whether the picture is encrypted via the "isEncrypted=1" in the URL.
| [in] | szAccessToken | Verification Token |
| [in] | szPicURL | Picture URL,https://wuhancloudpictest.ys7.com:8083/HIK_1456730366_5264003FD9BE63c4_06CE56000475472014644?isEncrypted=1&isCloudStored=0 |
| [in] | szSerail | Corresponding device serial No. of alarm picture |
| [in] | szSafeKey | Decription key, by deffault, it is the device verification code |
| [out] | pPicBuf | Decripted picture content (call OpenSDK_Data_Free to release the memory.) |
| [out] | iPicLen | pPicBuf length |
1.8.9.1