Update. testing with QoS
mqtt.publish("test/espruino", msg, 1);
1v91 Copyright 2016 G.Williams > =undefined Connected! 192.168.1.226 Client connected Response: httpCRs { "headers": { "Date": "Tue, 04 Apr 2017 19:34:40 GMT", "Server": "Apache/2.4.18 (Ubuntu)", "Last-Modified": "Fri, 15 Nov 2013 15:42:26 GMT", "ETag": "\"d-4eb390b887c80\"", "Accept-Ranges": "bytes", "Content-Length": "13", "Connection": "close", "Content-Type": "text/plain" }, "httpVersion": "1.1", "statusCode": "200", "statusMessage": "OK" } --->Hello World! MQTT connection accepted makeid: swv0V MQTT unsupported packet type: 5 [MQTT]86 makeid: 1HPH2 makeid: 8h85j MQTT unsupported packet type: 5 [MQTT]83,71,58,32,56,104,56,53,106 makeid: wCyVx makeid: l2Chh makeid: gbk2L makeid: 5HdG8 makeid: wWLvZ makeid: 6PHch MQTT unsupported packet type: 5 [MQTT]80,72,99,104 makeid: 1fuue makeid: sctqL MQTT unsupported packet type: 6 [MQTT]99,116,113,76 makeid: Rkpqp makeid: FqKuv MQTT unsupported packet type: 7 [MQTT]117,118 makeid: G6wsU makeid: j3g6z MQTT unsupported packet type: 6 [MQTT]106,51,103,54,122 makeid: 5RuIk makeid: hJLhd >
eMQ Console subscribed test/# QoS 1
2017-04-04 20:36:33 --(Q1, R1, D0, Topic=test/espruino, Payload=from server) 2017-04-04 20:36:40 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: gbk2L) 2017-04-04 20:37:00 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: 5HdG8) 2017-04-04 20:37:20 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: wWLvZ) 2017-04-04 20:37:40 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: 6PHch) 2017-04-04 20:38:00 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: 1fuue) 2017-04-04 20:38:20 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: sctqL) 2017-04-04 20:38:40 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: Rkpqp) 2017-04-04 20:39:00 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: FqKuv) 2017-04-04 20:39:20 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: G6wsU) 2017-04-04 20:39:40 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: j3g6z) 2017-04-04 20:40:00 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: 5RuIk) 2017-04-04 20:40:20 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: hJLhd) 2017-04-04 20:40:40 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: sF75w) 2017-04-04 20:41:00 --(Q1, R0, D0, Topic=test/espruino, Payload=MSG: x87O6)
mqtt.publish("test/espruino", msg, 2);
1v91 Copyright 2016 G.Williams > =undefined Connected! 192.168.1.226 Client connected Response: httpCRs { "headers": { "Date": "Tue, 04 Apr 2017 19:41:48 GMT", "Server": "Apache/2.4.18 (Ubuntu)", "Last-Modified": "Fri, 15 Nov 2013 15:42:26 GMT", "ETag": "\"d-4eb390b887c80\"", "Accept-Ranges": "bytes", "Content-Length": "13", "Connection": "close", "Content-Type": "text/plain" }, "httpVersion": "1.1", "statusCode": "200", "statusMessage": "OK" } --->Hello World! MQTT connection accepted {"topic":"test/espruino","message":"from server","dup":0,"qos":0,"retain":1} topic: test/espruino message: from server makeid: M95lA MQTT unsupported packet type: 5 [MQTT]80,2,0,1 makeid: vuVhs MQTT unsupported packet type: 5 [MQTT]80,2,0,1,208,0 makeid: X3K5K MQTT unsupported packet type: 5 [MQTT]80,2,0,1 makeid: 2ZZN3 MQTT unsupported packet type: 5 [MQTT]80,2,0,1,208,0 makeid: yG6HR MQTT unsupported packet type: 5 [MQTT]80,2,0,1 makeid: SSwc0 MQTT unsupported packet type: 5 [MQTT]80,2,0,1 makeid: UKyIs MQTT unsupported packet type: 5 [MQTT]80,2,0,1 makeid: NFBwM MQTT unsupported packet type: 5 [MQTT]80,2,0,1,208,0 makeid: SnxMM MQTT unsupported packet type: 5 [MQTT]80,2,0,1 makeid: aB2tu MQTT unsupported packet type: 5 [MQTT]80,2,0,1,208,0 >
Nothing in eMQ Console subscribed to test/#
@Stephen- started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Update. testing with QoS
mqtt.publish("test/espruino", msg, 1);
eMQ Console subscribed test/# QoS 1
mqtt.publish("test/espruino", msg, 2);
Nothing in eMQ Console subscribed to test/#