mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-25 06:46:10 +02:00
Add client id for mqtt
This commit is contained in:
parent
3a944d182b
commit
5f9015f7ad
6 changed files with 25 additions and 11 deletions
|
@ -385,6 +385,7 @@ class RestApi {
|
|||
|
||||
void getMqtt(JsonObject obj) {
|
||||
obj[F("broker")] = String(mConfig->mqtt.broker);
|
||||
obj[F("clientId")] = String(mConfig->mqtt.clientId);
|
||||
obj[F("port")] = String(mConfig->mqtt.port);
|
||||
obj[F("user")] = String(mConfig->mqtt.user);
|
||||
obj[F("pwd")] = (strlen(mConfig->mqtt.pwd) > 0) ? F("{PWD}") : String("");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue