You are reading a single comment by @Ickis and its replies. Click here to read the full conversation.
  • Gordon and thank you for support! I really appreciate it.

    Ok, about 'json-solution'. I've been testing it for few hours.
    it's not working for the moment.
    best results look like this:

    JSON TEST {"topic":"3865","message":"","dup":1,"qo­s":0,"retain":0}
    

    topic was '/test', message contain a string, but not ':'
    most part I've got undefined and thats it. But in debug i can see whole message and topic as it was sent.
    As well I got one new error:

    Uncaught Error: Unknown Timeout
     at line 2 col 149
    ...ACK)if(clearTimeout(b.ctimo),c=c.char­CodeAt(3),0===c)b.conne...
    

    it's not crash the script, but still.

    About MQTT packet: all the time i having 'MQTT unsupported packet type: 6' and 'MQTT unsupported packet type: 7'.
    It's the same when I send message either from espruino, websocket console or android client.
    Maybe I can change type somehow? How it works? Need a research this.

    and as soon as i can see topic and message in debug, probably i can get it to some buffer as well? I tried AT module, but not succeed with it so far.

About

Avatar for Ickis @Ickis started