当前位置:网站首页>[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]
边栏推荐
- Dynamics 365Online ApplicationUser创建方式变更
- STM32 and motor development (from stand-alone version to Networking)
- Information Security Experiment 4: implementation of IP packet monitoring program
- Pick up the premise idea of programming
- Communication mode between processes
- flinkcdc 用sqlclient可以指定mysqlbinlog id执行任务吗
- golang select机制和超时问题怎么解决
- Information Security Experiment 1: implementation of DES encryption algorithm
- Data association between two interfaces of postman
- 其实特简单,教你轻松实现酷炫的数据可视化大屏
猜你喜欢

Postman interface debugging method

MySql数据库-事务-学习笔记

MySql数据库-索引-学习笔记

H5网页播放器EasyPlayer.js如何实现直播视频实时录像?

4、 Fundamentals of machine learning

Kubernetes cluster capacity expansion to add node nodes

Jenkins modifies the system time

Jemter operation

VSCode+mingw64

Sublime Text4 download the view in bower and set the shortcut key
随机推荐
Information Security Experiment 1: implementation of DES encryption algorithm
Unity shader (data type in cghlsl)
Oracle installation enhancements error
4、 Fundamentals of machine learning
[cloud native] Devops (I): introduction to Devops and use of code tool
Huawei hcip datacom core_ 03day
Colorbar of using vertexehelper to customize controls (II)
CMD startup software passes in parameters with spaces
LeetCode每日一题(2316. Count Unreachable Pairs of Nodes in an Undirected Graph)
Huawei HCIP - datacom - Core 03 jours
# Arthas 简单使用说明
MySql数据库-索引-学习笔记
Cesium does not support 4490 problem solution and cesium modified source code packaging scheme
Postman setting environment variables
Unittest simple project
数据库多表关联查询问题
【SVN】SVN是什么?怎么使用?
在EXCEL写VBA连接ORACLE并查询数据库中的内容
MySql数据库-事务-学习笔记
沙龙预告|GameFi 领域的瓶颈和解决方案