MQTT with Teensy4.1 #2491
-
Hi, I´m happy to see that Teensy is now supported by mongoose. Http-server is workin well, but I´m incapable to get MQTT work with Raspbian´s Mosquitto. Once Mosquitto accept Data from Teensy, then again nothing happens. Im adapting the new Arduino-Example + Adding MQTT ` ///////////////////////////////////////////////////////////////////////////////////////////////// static void mqtt_timer_fn(void *arg)
} /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void mqtt_event_handler(struct mg_connection *c_mqtt, int ev, void *ev_data, void *fn_data)
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't know what "Once Mosquitto accept Data from Teensy" nor ""nothing happens" mean. |
Beta Was this translation helpful? Give feedback.
I don't know what "Once Mosquitto accept Data from Teensy" nor ""nothing happens" mean.
I suggest you sniff your network (Wireshark) and see if what you think it is, actually is. Did you happen to try to connect to a public broker that everybody knows is correctly configured and working fine, like HiveMQ, as we use in our examples and tutorials ?
Our MQTT examples are tested and do not depend on Teensy nor any other hardware.
If, after your network inspection, you find an actual issue, feel free to open an issue, fill the issue template, and provide us with pertinent information (including useful network captures) in order to reproduce and fix the issue. We don't inspect your code for err…