Closed ctwj closed 5 years ago
hello: i'm a newer, so i just use the example code in project. when connect everything is ok, but when i try to send something , i got the error Uncaught ReferenceError: wireMessage is not defined Connect:
Uncaught ReferenceError: wireMessage is not defined
this.client =new Paho.MQTT.Client('localhost', 8083, '') this.client.connect({ onSuccess: this.onConnect, userName: 'test', password: 'test' });
Publish:
let message = new Paho.MQTT.Message('1'); message.destinationName = "YZ_CONTROL"; this.client.send(message);
ERROR:
Uncaught ReferenceError: wireMessage is not defined # code where error happen wireMessage = new WireMessage(MESSAGE_TYPE.PUBLISH); wireMessage.payloadMessage = message;
# code where error happen wireMessage = new WireMessage(MESSAGE_TYPE.PUBLISH); wireMessage.payloadMessage = message;
Hey there 👋
I ran into the same issue and submitted a PR #170
Ok , thankyou verymuch!
hello: i'm a newer, so i just use the example code in project. when connect everything is ok, but when i try to send something , i got the error
Uncaught ReferenceError: wireMessage is not defined
Connect:Publish:
ERROR: