Open Andreasjkoch opened 11 months ago
Okay so I attempted to go ahead and move the clientConnected()
function from private to the public space in the "MqttClient.h" file from the library instead, and that functions works just fine...
@Andreasjkoch did that solve the problem for you? I'm seeing a similar issue using Arduino Portenta H7 board in Arduino Portenta Machine Control device, connecting to Azure IOT Hub. mqttClient.connected() always returns 0
@Andreasjkoch did that solve the problem for you?
Yes it did. For some reason the public function just doesn't work. So just move the line defining clientConnected() in MqttClient.h so that it is inside of public
Hi.
I am using the "ArduinoMqttClient" library (version 0.1.7) to connect to an MQTT broker. However, I have encountered an issue where the
mqttClient.connected()
function always returns 0, even when the connection to the MQTT broker is active and data is being sent.Environment:
Code: