Closed 100000watt closed 9 months ago
For me this works
void connectToMqtt() { if (setupInfo == true) { Serial.println("Connecting to MQTT..."); } if (mqttUser && mqttPassword) { mqttClient.setCredentials(mqttUser, mqttPassword); } mqttClient.connect(); }
Hi, How do I enter my username and password to authenticate to the broker Mosquitto? AsyncMqttClient.setCredentials always returns error. Forgive me, I'm a novice. Thank you