本帖最后由 molun 于 2023-8-15 11:08 编辑
本帖最后由 molun 于 2023-8-15 11:00 编辑
今天懒得上图了,直接看串口调试指令
AT+RST
OK
################################################
arch:BL602,NULL
company:Ai-Thinker|B&T
ble_mac:7cb94cd68b1c
wifi_mac:7cb94cd68b1b
sdk_version:release/release_bl_iot_sdk_1.6.36
firmware_version:V4.18_P1.4.4-e15d67b
compile_time:Nov 25 2022 11:22:39
ready
################################################
+EVENT:WIFI_CONNECT
+EVENT:WIFI_GOT_IP
AT+WJAP?
+WJAP:3,WIFI名称,WIFI密码,36:f2:16:f0:4f:60,WPA/WPA2 TKIP,7c:b9:4c:d6:8a:6b,1,192.168.0.101,192.168.0.1
OK
AT+MQTT=1,bemfa.com
OK
AT+MQTT=2,9501
OK
AT+MQTT=3,1
OK
AT+MQTT=4,4289d6c24a87cb5aaaa126f62bca33bb
OK
AT+MQTT=5,admin
OK
AT+MQTT=6,public
OK
AT+MQTT=7,"WB2",0,1,"安信可WB2开发板"
OK
AT+MQTT
OK
+EVENT:MQTT_CONNECT
AT+MQTT?
+MQTT:3,bemfa.com,9501,1,4289d6c24a87cb5aaaa126f62bca33bb,admin,public,WB2,0,1,安信可WB2开发板
OK
AT+MQTTPUB=WB2,1,0,怎么样使用MQTT点亮开发板上的灯?
这是来自安信可WB2开发板的测试消息
OK
AT+MQTTSUB=WB2,0
+EVENT:MQTT_DISCONNECT
+EVENT:MQTT_CONNECT
+EVENT:MQTT_SUB,WB2,6,测试
+EVENT:MQTT_SUB,WB2,17,MQTTX测试消息
AT+MQTTSUB?
3,WB2
AT+SYSIOMAP?
+SYSIOMAP:PinNumber:22,PinMap:NC,11,NC,12,14,17,3,NC,NC,NC,NC,NC,NC,NC,NC,4,NC,NC,5,NC,NC,NC
OK
AT+SYSGPIOWRITE=5,1
OK
AT+SYSGPIOWRITE=5,0
OK
AT+SYSGPIOWRITE=6,1
OK
AT+SYSGPIOWRITE=7,1
OK
AT+SYSGPIOWRITE=7,0
OK
AT+SYSGPIOWRITE=6,0
OK
+EVENT:MQTT_SUB,WB2,19,AT+SYSGPIOWRITE=5,1
+EVENT:MQTT_SUB,WB2,19,AT+SYSGPIOWRITE=5,0
+EVENT:MQTT_SUB,WB2,3,5,1
+EVENT:MQTT_SUB,WB2,19,AT+SYSGPIOWRITE=5,1
怎么样使用MQTT点亮开发板上的灯?
MQTTX上发过来的消息前面有“+EVENT:MQTT_SUB,WB2,19,”,怎么执行AT指令?
+EVENT:MQTT_SUB,WB2,47,怎么样使用MQTT点亮开发板上的灯?