   info(F("Booting up..."));
 }
 void updateStartupState() {
+  // set up the REST listener
+  rest.function("tb", setControlState);
+  
+  // get the REST service registered
+  rest.set_id("001");
+  rest.set_name("tankbot");
+
   stateMachine.transitionTo(idleState);
 }
 void leaveStartupState() {

// FSM states
State startupState = State(enterStartupState,updateStartupState,leaveStartupState);
State idleState = State(enterIdleState,updateIdleState,leaveIdleState);

FSM stateMachine = FSM(startupState);

void setup() {
  startLog();
}

void loop() {
  stateMachine.update();
}

// ******************* FSM state callback methods *******************

#include <FiniteStateMachine.h>
#include <SPI.h>
#include <aREST.h>
#include "LogHelpers.h"
#include "TimingHelpers.h"

