display setting updating
This commit is contained in:
parent
19aae95252
commit
b4b7232937
3 changed files with 85 additions and 1 deletions
|
@ -67,6 +67,7 @@ void setup() {
|
|||
strcpy(config.hostname, "espmega");
|
||||
Serial.println("Setting network config");
|
||||
espmega.iot->setNetworkConfig(config);
|
||||
espmega.iot->saveNetworkConfig();
|
||||
Serial.println("Connecting to network");
|
||||
espmega.iot->connectNetwork();
|
||||
Serial.println("Begin MQTT Modules");
|
||||
|
@ -79,6 +80,7 @@ void setup() {
|
|||
strcpy(mqtt_config.base_topic, "/espmegaoop");
|
||||
Serial.println("Loading MQTT Config Struct to IoT Module");
|
||||
espmega.iot->setMqttConfig(mqtt_config);
|
||||
espmega.iot->saveMqttConfig();
|
||||
Serial.println("Connecting to MQTT");
|
||||
espmega.iot->connectToMqtt();
|
||||
Serial.println("Registering Output Card");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue