There are 7 states in total:
00: smartconfig configuration state;
01: AP configuration state;
02: Wi-Fi is configured but not connected to the router;
03: Wi-Fi is configured and connected to the router;
04: Connected to the router and the cloud;
05: Wi-Fi device is in low power mode;
06: EZ mode and AP mode coexist. (For Wi-Fi and Bluetooth LE combo module: Bluetooth is also in pairing mode.)