philbowles / PangolinMQTT

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

Question om MQTT user and PW #25

Closed mrohner closed 4 years ago

mrohner commented 4 years ago

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

AcuarioCat commented 4 years ago

define MQTT_USER "MY_USERNAME"

define MQTT_PASS "MY_PASSWORD"

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

etc....

mrohner commented 4 years ago

Thanks