Category : mqtt

I want to pass a callback function as an argument but I am struggling. Here is my code: HSDMqtt::m_mqttHandler(m_config, &HomeStatusDisplay::mqttCallback); HSDMqtt::HSDMqtt(const HSDConfig& config, void (*)callback(String&, String&) ){ m_mqttclient.onMessage(callback) } void HomeStatusDisplay::mqttCallback(String &topic, String &payload) Where is the error? Source: Windows Que..

Read more

I’m new to Mosquitto and MQTT, I recently installed Mosquitto and I’m trying to send some commands to my TTN application. When I try to launch a mosquitto_pub command, it returns me that I’m not authenticated (and that’s normal), but if I try to launch a mosquitto_sub command, it result that it can’t find that ..

Read more

When using boost ssl::context::use_certificate_file I got use_certificate_file: no start line. Loading the CA via load_verify_file and the private key with use_private_key_file works and I can communicate with a self build mqtt broker also built with boost. Using the associated *crt file (pem format) and try to communicate to a mosquitto broker I got the error ..

Read more

I am trying to wait for a single message to be received over MQTT. I subscribe to a topic which gets called back in the MQTT client thread. I want to wait for 1second and abort the wait if the message has not been recieved. If I debug I can see the callback get called ..

Read more

I am trying to connect with an azure cloud endpoint with a hash character (#), but unable to get a trigger for subscription callback. Mqtt Client: libmosquitto-dev/stable,stable,now 1.5.7-1+deb10u1 amd64 [installed] MQTT version 3.1/3.1.1 client library, development files Following is my complete workflow: Subscribe topic with "devices/MyDevice/messages/devicebound/#". Call for publish() so that azure cloud will send ..

Read more

I am working with Core Neoway N58 Module, I have an error that I cannot connect to the MQTT server. Even though I followed the AT instructions released by the manufacturer. Don’t know if anyone has a workaround for this? Source: Windows Que..

Read more

I am implementing a MQTT communication. I want to send CAN frames over MQTT through a graphical interfaces (realized in python). I am able to send messages from the GUI to one topic and I am able to see messages arrived on the same topic (using paho library) when I use the board. The function ..

Read more