|
|
@ -116,7 +116,7 @@ public class IotUtils {
|
|
|
|
* @return 1-运行中,0-停止中
|
|
|
|
* @return 1-运行中,0-停止中
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static String getCelueStatus(String celueId){
|
|
|
|
public static String getCelueStatus(String celueId){
|
|
|
|
String str="{\"serial\":\""+serial+"\",\"productId\":\"\",\"methodName\":\"celueStatusQuery\",\"inputData\":{\"devid\":\""+serial+"\",\"celueid\":\""+celueId+"\"}}";
|
|
|
|
String str=String.format("{\"serial\":\"%serial\",\"productId\":\"\",\"methodName\":\"celueStatusQuery\",\"inputData\":{\"devid\":\"%serial\",\"celueid\":\"%celueId\"}}",serial,serial,celueId);
|
|
|
|
JSONObject requestBody = JSONObject.parseObject(str);
|
|
|
|
JSONObject requestBody = JSONObject.parseObject(str);
|
|
|
|
JSONObject responseBody = IotUtils.getApi(IotApiEnum.getPathByText("查询方法历史数据"), requestBody);
|
|
|
|
JSONObject responseBody = IotUtils.getApi(IotApiEnum.getPathByText("查询方法历史数据"), requestBody);
|
|
|
|
JSONObject data = responseBody.getJSONObject("data");
|
|
|
|
JSONObject data = responseBody.getJSONObject("data");
|
|
|
|