Setup Smart Plug Configuration

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Setup Smart Plug Configuration

Connecting to the Device through inbuilt Wi-Fi

1. Plug the smart plug. Indicator LED should blink in blue color.
2. Check your laptop’s available Wi-Fi list check for device SSID with a mac address.
Ex: B0:B2:1C:FE:FE:EB
Connect to this Wi-Fi using Password: 12345678

3. Open a web browser log to the device’s Network and Console page using 192.168.4.1 IP
address.

4. Select console
Set Configurations though web page

1. Connecting to a Wi-Fi router

• Modify the following AT command accordingly and send to the device.

• AT+CFGMODEM=WIFI,SSID,PASSWORD,ALWAYS

EX: AT+CFGMODEM=WIFI,MAGICBITERS,nevergiveup,ALWAYS

• After send response should be


OK

---
• Refresh the web page until page show it connected to the particular Wi-Fi.

2. Connecting to the Thingsboard cloud


• Again, go to console modify and put following AT command and send.
AT+CFGCLOUD=TB,{ACCESSTOKEN}, ,{http://MQTTBROKER:1883}

{ACCESSTOKEN} – particular device access token.

• Connect to telemetry data using following commands.


AT+MODS=ADD,TELE

• Use following AT command to reboot the device


AT+REBOOT

After rebooting Wi-Fi will disconnect. Check a Wi-Fi device with above ACCESSTOKEN as
the SSID IN the available Wi-Fi list in your device. Use the same PASSWORD: 12345678
connect to the device again.
• Enter following AT commands.

AT+TELE1CFG=1,60,3
AT+TELE1READ=CUSTOM

3. Send the following AT command to the Switch on/off relay


• Switch on
AT+DW=4,1

• Switch off
AT+DW=4,0
4. Check and change the PASSWORD.
• Check the password
AT+CFGPW?

• Change the password


AT+CFGPW = “your PASSWORD”
Password should contain minimum of 8 characters.
• Disconnect the device reconnect to the device using new password

LED Indication

1. Blinking Blue: Smart Plug connected to the power not connected to a Wi-Fi or cloud yet.
2. Blinking Yellow: Connected to a Wi-Fi not connected to a cloud.
3. Blinking Green: Connected to the cloud and relay is turned off.
4. Blinking Green: Connected to the cloud and relay is turned on.

*** after entering every AT command response should be “OK”

You might also like