       delay(5000);
     }
   }
-}+}


  // powerOff
  if (payloadStr.equals(F("powerOff"))) {
    //motionControlStop();
  // powerOn
  } else if (payloadStr.equals(F("powerOn"))) {
  //motionControlStart();
  // getStatus
  } else if (payloadStr.equals(F("getStatus"))) {
      // snprintf (msg, 20, "PowerState: %i", curState);

  
  // powerReset
  } else if (payloadStr.equals(F("powerReset"))) {
    motionControlStop();
    delay(10000);
    motionControlStart();
    loop();
  
  // resetESP
