dds2mqtt

所属分类:通讯编程
开发工具:C
文件大小:0KB
下载次数:2
上传日期:2023-01-04 08:26:39
上 传 者sh-1993
说明:  将DDS节点链接到MQTT网络,
(Link DDS nodes to MQTT network,)

文件列表:
.clang-format (412, 2023-01-04)
CMakeLists.txt (1425, 2023-01-04)
LICENSE (1078, 2023-01-04)
dds2mqtt.config (518, 2023-01-04)
doc/ (0, 2023-01-04)
doc/dds.gv (485, 2023-01-04)
doc/dds.svg (10143, 2023-01-04)
doc/infra.gv (571, 2023-01-04)
doc/infra.svg (9434, 2023-01-04)
src/ (0, 2023-01-04)
src/HelloWorld.idl (388, 2023-01-04)
src/HelloWorldMQTTTypes.c (2962, 2023-01-04)
src/HelloWorldMQTTTypes.h (354, 2023-01-04)
src/cJSON.c (67493, 2023-01-04)
src/cJSON.h (15786, 2023-01-04)
src/dds_client.c (5945, 2023-01-04)
src/dds_client.h (491, 2023-01-04)
src/main.c (447, 2023-01-04)
src/mqtt_client.c (9228, 2023-01-04)
src/mqtt_client.h (1071, 2023-01-04)
src/publisher.c (3198, 2023-01-04)
src/subscriber.c (3536, 2023-01-04)
src/vector.c (3832, 2023-01-04)
src/vector.h (1627, 2023-01-04)
test/ (0, 2023-01-04)
test/test.c (138, 2023-01-04)

# dds2mqtt Here we combine dds with mqtt. So DDS node can communicate with MQTT broker. DDS node <--local--> NanoSDK client <--network--> NanoMQ Broker ## Requires Select cyclonedds as dds backend. + CycloneDDS version == 0.10.1 NanoSDK is a MQTT SDK. + NanoSDK version >= 0.7.5 Note. libddsc and libnng should be installed. ## NOTE Select topics from configure file is not supported. ## TEST Step1. Turn on nanomq Step2. Start the dds2mqtt proxy ``` ./dds2mqtt proxy ``` Test msgs from DDS to MQTT Step3. ``` ./nanomq_cli/nanomq_cli sub --url "mqtt-tcp://127.0.0.1:1883" -t "DDS/HelloWorld" ``` Step4. ``` ./dds2mqtt pub ``` Test msgs from MQTT to DDS Step5. ``` ./dds2mqtt sub ``` Step6. ``` ./nanomq_cli/nanomq_cli pub -t DDSCMD/HelloWorld -m '{ "int8_test": 1, "uint8_test": 50, "int16_test": 27381, "uint16_test": 1, "int32_test": 0, "uint32_test": 32, "int64_test": 6820785120, "uint64_test": 25855901936, "message": "aaabbbddd", "example_enum": 0, "example_stru": { "message": "abc" } }' ```

近期下载者

相关文件


收藏者