mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-12 08:26:38 +02:00
* added IP address to serial console on successful connect to station WiFi
* fix: RF24 power setting configuration * added RF24 isChipConnected * added MQTT port configuration * fix offsets for HM400 and HM600 inverters * added warning if configuration was changed without reboot
This commit is contained in:
parent
169bf8c7c8
commit
a9b7fd0599
8 changed files with 92 additions and 53 deletions
|
@ -20,9 +20,9 @@ class mqtt {
|
|||
delete mClient;
|
||||
}
|
||||
|
||||
void setup(const char *broker, const char *topic, const char *user, const char *pwd) {
|
||||
void setup(const char *broker, const char *topic, const char *user, const char *pwd, uint16_t port) {
|
||||
mAddressSet = true;
|
||||
mClient->setServer(broker, 1883);
|
||||
mClient->setServer(broker, port);
|
||||
|
||||
snprintf(mUser, MQTT_USER_LEN, "%s", user);
|
||||
snprintf(mPwd, MQTT_PWD_LEN, "%s", pwd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue