JDY-25M SDK
Function and Mode
Data Transmission Mode ROLE0 and ROLE1
Slave Mode
- AT+ROLE0
- AT+RESET
Master Mode
- AT+ROLE1
- AT+RESET
- search slave module: AT+INQ
输出搜索到的从机 MAC、RSSI、NAME 参数 +DEV:0=11891240001F,,-28,JDY-24M +DEV:1=118912400020,-46,JDY-24M +DEV:2=118912400021,-26,JDY-24M +DEV:3=11FA12400022,-40,JDY-34-BLE
- Connect it: AT+CONA118912400020
Mesh Function
- Turn off learning mode = AT+LEARN0
- Set to Mesh mode = AT+ROLE5, reset device = AT+RESET
- Configure the network NETID as 1122: AT+NETID1122
- Configure the current device short address as 0005: AT+MADDR0005
- Configure the device as a routing node: AT+MCLSS0
- Then configure the current KEY1 broadcast to control the OUT3 output of all devices in the network IO: AT+KEY1,0008,3,1
AT+KEY1,0008,3,1 = current input pin 1, target address 0008, target output pin 3, serial print enable 1
- Send AT+RESET again to restart to take effect, then KEY1 can control the output IO level of all OUT3 in the network.