当前位置:网站首页>[bw16 application] Anxin can realize mqtt communication with bw16 module / development board at instruction
[bw16 application] Anxin can realize mqtt communication with bw16 module / development board at instruction
2022-07-07 09:32:00 【Anxinco Technology】
List of articles
Preface
This article mainly introduces anxinko BW16 module / Development board running combo AT The firmware , With the help of EMQ Server implementation MQTT Operation process of communication .
1 Firmware burning
Reference documents for firmware burning : Anxinco BW16 Module and development board update firmware burning instructions , I'm not going to repeat it here .
combo Firmware get link :https://docs.ai-thinker.com/rtl87xx
2 EMQ Server setup
2.1 Software access
EMQX Software access link :https://www.emqx.com/en/try?product=broker, Users can choose according to the type of system installed , And the version number to download the installation package .
2.2 start-up EMQ service
Unzip the installation package , Place the folder in the specified path , open bin Path to folder , Operation instruction :emqx start
Browser access url:localhost:18083
open WebSocket Client Interface , Click on connect, After successful connection , You can start debugging
3 Device end networking configuration
3.1 AT Instruction configuration
AT+WMODE=3,1 # Set up wifi The model is AP_STA
AT+WJAP="SSID","PASSWORD" # Configuration connection room wifi
AT+MQTT=1,mqtt_url # Configure access to MQTT The server url
AT+MQTT=2,1883 # Configure the server access port number
AT+MQTT=3,1 # To configure MQTT How to connect , Default 1: Express TCP
AT+MQTT=4,001 # To configure MQTT user ID Number
AT+MQTT=5,admin # To configure MQTT user name
AT+MQTT=6,public # Set up MQTT User password
AT+MQTT # Connect MQTT
AT+MQTTSUB=pub_topic,0 # Subscribe to guidance topics
AT+MQTTPUB=pub_topic,0,0,123456 # Publish data to the guidance topic
The effect is as follows :
3.2 Information exchange
stay Dashboard On the interface , Good configuration sub as well as pub Parameters of :
The theme of module subscription here is “sub_topic” The news of , and Dashboard The terminal subscribes to the theme “pub_topic” The news of , after , The module release theme is “pub_topic” The news of ,Dashboard The theme of the terminal is “sub_topic” The news of , The effect is as follows :
Contact us
The above is the content of this issue , The purpose is to let everyone quickly adapt to the development of new products , More information can be obtained from our official website .
Official website :https://www.ai-thinker.com
Development of information :https://docs.ai-thinker.com/
Official forum :http://bbs.ai-thinker.com
Technical support :[email protected]
边栏推荐
- Unity3d interface is embedded in WPF interface (mouse and keyboard can respond normally)
- 牛客网——华为题库(61~70)
- Jmeters use
- Dynamics 365online applicationuser creation method change
- Netease cloud wechat applet
- Jemter operation
- 第一讲:包含min函数的栈
- 信息安全实验三 :PGP邮件加密软件的使用
- Information Security Experiment 1: implementation of DES encryption algorithm
- Selenium mouse sliding operation event
猜你喜欢
战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
Oracle安装增强功能出错
信息安全实验一:DES加密算法的实现
浏览器中如何让视频倍速播放
第一讲:寻找矩阵的极小值
The configuration and options of save actions are explained in detail, and you won't be confused after reading it
Yapi test plug-in -- cross request
Error: selenium common. exceptions. WebDriverException: Messag‘geckodriver‘ execute
Jenkins automated email
Locust performance test 3 (high concurrency, parameter correlation, assembly point)
随机推荐
How to solve the problem of golang select mechanism and timeout
JS inheritance prototype
Netease cloud wechat applet
软件建模与分析
The use of recycling ideas
Information Security Experiment 4: implementation of IP packet monitoring program
JWT certification used in DRF
(3/8)枚举的不当用法 之 方法参数(二)
Mysql:select ... for update
二叉树高频题型
How does mongodb realize the creation and deletion of databases, the creation of deletion tables, and the addition, deletion, modification and query of data
Netease Cloud Wechat applet
Oracle安装增强功能出错
信息安全实验一:DES加密算法的实现
Pytest+request+allure+excel interface automatic construction from 0 to 1 [familiar with framework structure]
第一讲:寻找矩阵的极小值
Unity shader (to achieve a simple material effect with adjustable color attributes only)
12、 Sort
Nested (multi-level) childrn routes, query parameters, named routes, replace attribute, props configuration of routes, params parameters of routes
In fact, it's very simple. It teaches you to easily realize the cool data visualization big screen