     if (subCommand == "switch") {
       char c = client.read();
       if (c == '0') {
-        digitalWrite(RELAYPIN, 0);
+        digitalWrite(RELAYPIN, LOW);
       } 
       if (c == '1') {
-        digitalWrite(RELAYPIN, 1);
+        digitalWrite(RELAYPIN, HIGH);
       } 
       sendReply(client,subCommand,digitalRead(RELAYPIN));
       return;

void setup() {
  // Set serial port
  Serial.begin(115200); 
  // Use the led 13 to notify that the
  // setup completed
  pinMode(13,OUTPUT);
  digitalWrite(13, HIGH);
  // Init bridge library
  Bridge.begin();
  // Default on
  pinMode(RELAYPIN,OUTPUT);
  digitalWrite(RELAYPIN, LOW);
  // Loading setting 
  eeprom_read_block((void*)&settings, (void*)0, sizeof(settings));
  if (strcmp(settings.magic, MAGIC) != 0) {

    }
    else if (cmd == 'S') {
      if (value > 0) {
        Serial.println("@switch: high");
        digitalWrite(RELAYPIN, HIGH);
      } 
      else {
        Serial.println("@switch: low");
        digitalWrite(RELAYPIN, LOW);
      }
    } 
