|
@@ -226,7 +226,6 @@ App({
|
|
|
//订阅主题
|
|
|
// err:null
|
|
|
// granted:[{"topic":"/AIrSMArT_861210052355545/status/onoffline","qos":0}]
|
|
|
- console.log("gadfsqwerqewqrqr==222==" + topic);
|
|
|
that.globalData.client.subscribe(topic, function (err, granted) {
|
|
|
if (!err) {
|
|
|
if (callback) {
|
|
@@ -288,7 +287,6 @@ App({
|
|
|
var publish = `/${DstDeviceName}/user/sub_control`;
|
|
|
// {"type":"get_dev_info","DstDeviceName":"AIrSMArT_7cdfa1fd3af0","SrcDeviceName":"ALY_933625"}
|
|
|
var dataString = `${JSON.stringify(data)}`;
|
|
|
- console.log("gadfsqwerqewqrqr==111==" + dataString);
|
|
|
that.globalData.client.publish(publish, dataString, (err) => {
|
|
|
if (err) {
|
|
|
console.log("发布消息失败");
|