Searched refs:deviceInfoJson (Results 1 – 4 of 4) sorted by relevance
1072 if (deviceInfoJson == nullptr) { in GetPeerUdidList()1077 cJSON_Delete(deviceInfoJson); in GetPeerUdidList()1082 cJSON_Delete(deviceInfoJson); in GetPeerUdidList()1100 cJSON_Delete(deviceInfoJson); in GetPeerUdidList()1104 cJSON_Delete(deviceInfoJson); in GetPeerUdidList()1115 if (deviceInfoJson == nullptr) { in GetPeerUdidList()1147 cJSON_Delete(deviceInfoJson); in GetPeerUdidList()1158 if (deviceInfoJson == nullptr) { in GetPeerUdidList()1190 cJSON_Delete(deviceInfoJson); in GetPeerUdidList()1201 if (deviceInfoJson == nullptr) { in GetPeerUdidList()[all …]
154 cJSON* deviceInfoJson = cJSON_CreateArray(); in GetDeviceInfoList() local163 cJSON_AddItemToArray(deviceInfoJson, object); in GetDeviceInfoList()165 return std::string(cJSON_PrintUnformatted(deviceInfoJson)); in GetDeviceInfoList()
783 cJSON *deviceInfoJson = cJSON_CreateArray(); in GetDeviceInfoList() local784 if (deviceInfoJson == nullptr) { in GetDeviceInfoList()792 cJSON_Delete(deviceInfoJson); in GetDeviceInfoList()802 cJSON_AddItemToArray(deviceInfoJson, object); in GetDeviceInfoList()804 char *deviceInfoStr = cJSON_PrintUnformatted(deviceInfoJson); in GetDeviceInfoList()807 cJSON_Delete(deviceInfoJson); in GetDeviceInfoList()811 cJSON_Delete(deviceInfoJson); in GetDeviceInfoList()
1157 nlohmann::json deviceInfoJson = nlohmann::json::parse(deviceInfoStr); in GetDmDeviceInfo() local1158 if ((deviceInfoJson.contains("deviceName") && deviceInfoJson.contains("deviceTypeId") && in GetDmDeviceInfo()1159 deviceInfoJson.contains("networkId")) && in GetDmDeviceInfo()1160 … (deviceInfoJson["deviceName"].is_string() && deviceInfoJson["networkId"].is_string())) { in GetDmDeviceInfo()1161 distributedCamInfo[i].deviceName = deviceInfoJson["deviceName"]; in GetDmDeviceInfo()1162 distributedCamInfo[i].deviceTypeId = deviceInfoJson["deviceTypeId"]; in GetDmDeviceInfo()1163 distributedCamInfo[i].networkId = deviceInfoJson["networkId"]; in GetDmDeviceInfo()