Commit 823f2321 by 朱建香

添加debug

parent ea067531
......@@ -913,9 +913,15 @@ function registerPushListener(self){
console.log("registerPushListener");
console.log(response);
let data = uPublic.checkResponseData(response.data.params.data);
if(window.iotDebug){
iotDebug.push('end: 监听消息'+JSON.stringify(data));
}
if(data){
sdsDataPorcessing(self, data);
}
if (window.iotDebug) {
iotDebug.upload(iot,'监听消息');
}
},
error: (error) => {
console.log(error);
......@@ -936,7 +942,13 @@ async function sdsDataPorcessing(self, data){
console.log(data);
//设置电量百分比和icon
setBatteryPercentAndIcon(self, data.BatteryPercentage.value);
if(window.iotDebug){
iotDebug.push('end: 监听消息 当前sds状态'+onlineState);
}
if(onlineState == data.onlineState.value){
if(window.iotDebug){
iotDebug.push('end: 监听消息 进入逻辑处理');
}
switch(data.action.value){
case 'notify':
switch(data.notify_type.value){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment