Chengdu Ebyte Electronic Technology Co.,Ltd.
E103-W07 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
18
Example
AT+UART=115200,3,0,1,0
5.5 Mesh network
5.5.1 AT+ROUTER router parameters
Instruction
Answer
Inquire
AT+ROUTER?
+ROUTER: ["ssid"],["password"],[routerswitchdisable],["bssid"]
Set up
AT+ROUTER=[“ssid”],[“password”]
,<routerswitchdisable>,<“bssid”>
+OK success
+ERR:[NUM] error
Parameter
ssid
WIFI name. The maximum length of the string is 31 bytes
password
WIFI password. The string length is 8~63 bytes
routerswitchd
isable
0
Enable switching
1 (default)
No switching
-
——
bssid
Router MAC address. Fixed to 6 bytes
Description
1.
Restart to take effect, save when power off;
2.
The default value is all empty, or 0
3.
If the router SSID is hidden, the BSSID must be specified;
4.
In the actual application scenario, there are multiple routers/APs with the same SSID. At this time, the
BSSID must be specified, otherwise multiple MESH networks will appear, causing nodes to be unable to
communicate with each other.
5.
If the BSSID is specified, but routerswitchdisable is not set, when the router with the specified BSSID is
still not found after several times, the entire network is allowed to switch to another router with the same
SSID. The new router may also be on a different channel.If the passwords of the new switching router and
the previous router are different, a mesh network may be established, but the root node will never connect
to the new switching router, which is a risk
Example
Get the current router settings:
AT+ROUTER?
Module response:
+ROUTER:"test","1357924680",0,"00:00:00:00:00:00"
Set the router name to: test01, the password to: 12345678, and no designated router MAC address:
AT+ROUTER="test01","12345678"
Set the router name as: test02, the password as: 12345678, and the designated router MAC as: 01:02:03:04:05:06;
AT+ROUTER="test02","12345678",0,"01:02:03:04:05:06"
Set the router name: test03, no password, no specified MAC
AT+ROUTER="test02"
5.5.2 AT+MESHID mesh ID setting or query
Instruction
Answer