Sébastien Trocherie in MATLAB Answers
Ultima attività il 2 Maggio 2024

Hi, I'm using the STM32F746NG discovery board to connect to the thingspeak MQTT broker. However I can't connect to the server, i'm using dns to get the server ip adres which I then use in the mqtt_client_connect function. When I get to the callback function the status is 256 (MQTT_CONNECT_DISCONNECTED). I've had this problem before with a local MQTT broker (mosquitto 2.0), I was able to solve this problem by installing an older version (mosquitto 1.161a). I'm using the correct credentials because they work in the mqtt_spy application. Has anyone had this problem before or a sollution for this problem? With kind regards Sébastien

Informazioni su ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.