mirror of
https://github.com/mrcory/arduino-home-assistant.git
synced 2026-08-02 15:24:26 -04:00
update HAMqtt class API
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -54,6 +54,12 @@ public:
|
||||
const char* password = nullptr
|
||||
);
|
||||
|
||||
bool begin(
|
||||
const IPAddress& serverIp,
|
||||
const char* username,
|
||||
const char* password
|
||||
);
|
||||
|
||||
/**
|
||||
* ArduinoHA's ticker.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user