* 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:
lumapu 2022-04-26 22:49:00 +02:00
parent 169bf8c7c8
commit a9b7fd0599
8 changed files with 92 additions and 53 deletions

View file

@ -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);