当前位置:网站首页>Onenet Internet of things platform - the console sends commands to mqtt product devices
Onenet Internet of things platform - the console sends commands to mqtt product devices
2022-07-01 12:05:00 【Rain cloud 21】
Subscribe to system commands topic
$sys/{
pid}/{
device-name}/cmd/request/{
cmdid}
topic in {cmdid} As a variable , Unique for each command id, You can subscribe through wildcards , such as :
$sys/{pid}/{device-name}/cmd/request/+, perhaps$sys/{pid}/{device-name}/cmd/#
open MQTT.fx, Connecting device , choice Subscribe term , Enter subscription topic name . My is $sys/480701/yuyun-test/cmd/# Pictured :

The console issues a command
open onenet Platform MQTT Internet of things Suite , As shown in the figure below Where to find Issue order

Enter the command content and timeout , Click on send out

MQTT The simulation tool will receive a topic news , As shown in the figure below

The figure shows the device receiving the command topic by :
$sys/480701/yuyun-test/cmd/request/7e0bf5f6-e80d-419b-a3e8-01b704f06e3d
Analog device response
The answer is topic The order is :
$sys/{
pid}/{
device-name}/cmd/response/{
cmdid}
Use MQTT.fx Post a message to the corresponding topic, Analog device response
The answer is topic The one who received the order in the above figure , Will be one of the request Change it to response, And then in Publish Add the content that needs to be answered . As shown in the figure below :

And then back to Subscribe Check the received messages : Use MQTT.fx After the analog device answers , From the system topic Receiving a message indicates , The device responded successfully . As shown in the figure below :

At the same time, the command tool on the platform page will display the response result of the command , As shown in the figure below :

among cmd_resp": “ytW1vaOh” Answer the message for the device “ received !” Of base64 Coding form , Use base64 Decrypted as GB2312 You can see the encoding format :

边栏推荐
- Exposure: a white box photo post processing framework reading notes
- redis配置环境变量
- 用于分类任务的数据集划分脚本
- About keil compiler, "file has been changed outside the editor, reload?" Solutions for
- redis中value/hush
- [Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 8
- Le semester manquant
- Epoll introduction
- Compile and debug net6 source code
- Emotion analysis based on IMDB comment data set
猜你喜欢

Learning summary on June 29, 2022

Redis configuration environment variables

Compile and debug net6 source code

Message queue monitoring refund task batch process

redis配置环境变量

Exploration and practice of inress in kubernetes

Use of easyexcel

91. (chapitre Cesium) simulation de lancement de fusées cesium

研发效能度量框架解读

Istio, ebpf and rsocket Broker: in depth study of service grid
随机推荐
GID:旷视提出全方位的检测模型知识蒸馏 | CVPR 2021
Leetcode force buckle (Sword finger offer 31-35) 31 Stack push pop-up sequence 32i II. 3. Print binary tree from top to bottom 33 Post order traversal sequence 34 of binary search tree The path with a
Adjacency matrix undirected graph (I) - basic concepts and C language
LeetCode 454. Add four numbers II
NOV Schedule for . Net to display and organize appointments and recurring events
Redis configuration environment variables
Redis startup and library entry
ACLY与代谢性疾病
91. (chapitre Cesium) simulation de lancement de fusées cesium
LeetCode 454. 四数相加 II
Rural guys earn from more than 2000 a month to hundreds of thousands a year. Most brick movers can walk my way ǃ
Summary of JFrame knowledge points 1
用于分类任务的数据集划分脚本
Golang introduces the implementation method of the corresponding configuration file according to the parameters
Epoll introduction
The Missing Semester
ES6 promise Usage Summary
CPU 上下文切换的机制和类型 (CPU Context Switch)
Value/hush in redis
博途V15添加GSD文件