update HAMqtt class API

This commit is contained in:
Dawid Chyrzynski
2021-01-07 22:28:33 +01:00
parent 7ddc2055d1
commit 6983a6d643
2 changed files with 15 additions and 0 deletions
+9
View File
@@ -83,6 +83,15 @@ bool HAMqtt::begin(
return true;
}
bool HAMqtt::begin(
const IPAddress& serverIp,
const char* username,
const char* password
)
{
return begin(serverIp, 1883, username, password);
}
void HAMqtt::loop()
{
if (!_initialized) {
+6
View File
@@ -54,6 +54,12 @@ public:
const char* password = nullptr
);
bool begin(
const IPAddress& serverIp,
const char* username,
const char* password
);
/**
* ArduinoHA's ticker.
*/