Let Us Build a MQTT Pub-Sub Client In C# For IoT Research
-
Published:2024-02-02
Issue:
Volume:
Page:104-114
-
ISSN:2581-6012
-
Container-title:International Journal of Management, Technology, and Social Sciences
-
language:en
-
Short-container-title:IJMTS
Author:
Chakraborty Sudip1, Aithal P. S.2
Affiliation:
1. D.Sc. Researcher, Institute of Computer Science and Information sciences, Srinivas University, Mangalore-575 001, India 2. Senior Professor, Srinivas University, Mangalore, India
Abstract
Purpose: MQTT stands for Message Queuing Telemetry Transport. It is a lightweight protocol specifically designed for IoT applications. Nowadays, most IoT projects exchange sensor data over the MQTT protocol. It is simple to integrate and can run on low hardware resources. To test MQTT, the researcher needs MQTT publisher subscriber client software. There are several free and paid software available on the web. But sometimes, researchers need some custom interface or functionality not available in the free version. The paid version demands vast amounts of money for customization. Occasionally, they want to avoid customization for specific projects. Here, we provide a procedure to create our MQTT pub-sub client software interface, which the researcher can easily customize. The project is available to download.
Methodology/Approach: We installed Microsoft Visual Studio in our working system. Using C# language, we create a GUI (graphical user interface). Inside the GUI, we segregate the info into two. The left is for publishing clients, and the right is for subscribing clients. We installed the M2MQTT package using the NuGet package manager to communicate with the MQTT broker.
Findings/Result: Using our built application, we test to exchange the sensor data between two clients. We found the data exchanged in almost real-time. In a couple of scenarios, we observed that the data propagation could have been faster when we set the update interval below 500 milliseconds. There may be a network delay, or the MQTT broker we used is a free service. It may be the limited capacity of the accessible mode of the server we used. If the application is not time-critical, we can utilize this communication route to exchange the sensor data.
Originality/Value: Every day, new researchers are introduced to the IoT field and integrate MQTT into their projects. They feel one customizable software they can use according to their project requirements. So, using this project, the researcher can fulfill their need. The code is freely available on the web. And scope to customize. This project provides value to them.
Type of Paper: Experimental-based Research.
Publisher
Srinivas University
Reference30 articles.
1. Velinov, A., Mileva, A., Wendzel, S., & Mazurczyk, W. (2019). Covert channels in the MQTT-based Internet of Things. IEEE Access, 7(1), 161899-161915. 2. Longo, E., Redondi, A. E. C., Cesana, M., & Manzoni, P. (2022). BORDER: A benchmarking framework for distributed MQTT brokers. IEEE Internet of Things Journal, 9(18), 17728-17740. 3. Hästbacka, D., Kannisto, P., & Kätkytniemi, A. (2022, October). Interoperability of OPC UA PubSub with existing message broker integration architectures. In IECON 2022–48th Annual Conference of the IEEE Industrial Electronics Society (pp. 1-6). IEEE. 4. Manzoni, P., Maniezzo, V., & Boschetti, M. A. (2022). Modeling Distributed MQTT Systems Using Multicommodity Flow Analysis. Electronics, 11(9), 1498. 5. Walker, M., von Arnim, C., Neubauer, M., Lechler, A., Riedel, O., & Verl, A. (2023, April). Reflection-based Prototyping Framework for OPC UA Servers for Companion Specifications. In 2023 IEEE International Conference on Industrial Technology (ICIT) (pp. 1-6). IEEE.
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
|
|