device reset after failed DHCP request to recognize dead ethernet module

This commit is contained in:
hg
2015-05-14 10:54:02 +02:00
parent b0bb23dcad
commit 3cb834208d
4 changed files with 85 additions and 33 deletions

View File

@ -15,6 +15,7 @@
#include <Print.h>
#include "cmd.h"
#include "config.h"
#include "reset.h"
char MQTT_BROKER_DEFAULT[] = "192.168.75.1";
@ -145,7 +146,7 @@ String MqttConfig::exec(String params) {
} else if (params.equalsIgnoreCase("reset")) {
configReset();
*out << "Stopping gateway, wait for reset" << endl;
while (true);
resetDevice();
res = "done";
}
return res;