     green = LED_ON; red = LED_OFF;
     tock();
     return;
+  };
+
+  if (!strcmp("outoforder", rest)) {
+    machinestate = OUTOFORDER;
+    send("event outoforder");
+    return;
   }
 
   Debug.print("Do not know what to do with <"); Log.print(rest); Log.println("> - ignoring.");
   return;
 }
-
 
 void handleMachineState() {
 #if 0

    Log.print("Unknown signature format <"); Log.print(sig); Log.println(">");
    return;
  }
  char * SEP(hmac, "No HMAC");
  char * SEP(beat, "No BEAT");
  char * rest = p;


#ifdef ARDUINO_ESP8266_ESP12
// We guess that ESP12 devices have enough memory for OTA. Unfortunately there is
// no #define of the memory specified in the tools menu/hardware/boarts.txt file.
//
#define OTA
#endif

// While the ESP01s generally have a lot less memory. Our code needs to stay
// below 236KB ( (512/2-4KB-16KB) in order to allow OTA on a 512kB flash.
//
#ifdef ARDUINO_ESP8266_ESP01
#define OTA
#endif

#include <ESP8266WiFi.h>

#ifdef OTA
#include <WiFiUdp.h>
#include <ESP8266mDNS.h>
#include <ArduinoOTA.h>
#endif

#include <PubSubClient.h>
#include <SPI.h>
#include <MFRC522.h>
