       delay(1);
     }
   }
+#endif /* SOFT_SERIAL */
   return STATE_RELAY;
 }
 

#include <SD.h>
#include <ESP8266WiFi.h>

char wifi_ssid[MAX_WIFI_SSID_SIZE];
char wifi_pass[MAX_WIFI_PASS_SIZE];
char passwd[MAX_USER_PASS_SIZE];

#define LOGIN_PASSWD_FILE "pass.txt"
#define WIFI_SSID_FILE "ssid.txt"
#define WIFI_PASS_FILE "wifipass.txt"

#define SOFT_SERIAL_RX_PIN 16
#define SOFT_SERIAL_TX_PIN 4

/*
  状態遷移
    初期状態    STATE_START          0
