ready for tag FIRST_MQTT

This commit is contained in:
hg 2015-05-13 21:17:11 +02:00
parent fccb9f3b21
commit 56c581080e
2 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#include <Streaming.h>
#include <Metro.h>
#include "config.h"
#include "info.h"
const uint8_t POWER_LED = 4;
@ -25,6 +26,7 @@ static uint8_t mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEF };
static CmdServer cmdServer(2000);
static TestCmd testCmd;
static Uptime uptime;
static InfoCmd infoCmd;
static MeterBusMaster meterBusMaster;
static MqttClient mqttClient(&meterBusMaster);
@ -72,6 +74,7 @@ void setup() {
cmdServer.begin();
testCmd.registerYourself(&cmdServer);
infoCmd.registerYourself(&cmdServer);
uptime.begin(&cmdServer);
overCurrentProt.begin(&cmdServer);

View File

@ -8,6 +8,7 @@
#include <WString.h>
#include <Streaming.h>
#include "info.h"
String InfoCmd::exec(String params) {