philbowles / PangolinMQTT

PangolinMQTT - ArduinoIDE client library for ESP8266, ESP32 and STM32-NUCLEO
Other
71 stars 22 forks source link

Question om MQTT user and PW #25

Closed mrohner closed 3 years ago

mrohner commented 3 years ago

There seems to be no keyword file. How to set mqtt user and Password please?

AcuarioCat commented 3 years ago

define MQTT_USER "MY_USERNAME"

define MQTT_PASS "MY_PASSWORD"

PangolinMQTT mqttClient; mqttClient.setCredentials(MQTT_USER, MQTT_PASS);

etc....

mrohner commented 3 years ago

Thanks