• After a little more digging, I noticed I was sending defaults to MQTT and nothing to tinyMQTT.

    wifi.dbg() throws unhandled exception

    tinyMQTT:

    mqtt = require("tinyMQTT").create(server);
    
    mosquitto logs:
    1709312245: New client connected from 192.168.1.100:15450 as 29004900-0c513532-39333638 (p2, c0, k65535).
    
    K = keep_alive
    

    MQTT:

    mqtt = require("MQTT").create(server, options);
    // tried different defaults in the options obj, nothing matters
    
    mosquitto logs:
    1709312100: New connection from 192.168.1.100:44568 on port 8883.
    1709312100: New client connected from 192.168.1.100:44568 as random (p2, c1, k10).
    

    Summary:

    tinyMQTT :
    Mosquitto says connected - YES
    Espruino says connected - YES
    Receive messages - YES

    MQTT
    Mosquitto says connected - YES
    Espruino says connected - NO (Connection Error)
    Receive messages - NO

    3rd part Android app
    Mosquitto says connected - YES
    Can publish messages - YES

    All using same server and port number

About

Avatar for Coder2012 @Coder2012 started