Java IoT Device Management
Java SMQ is the answer to all of your IoT device management needs.
Join the DZone community and get the full member experience.Join For Free
We recently committed our Java SMQ IoT stack to GitHub. SMQ is similar to MQTT, but it includes a few additional features that simplify device management. For example, one can communicate directly with a specific device using an ID and each message published includes the sender's ID, making it easy for the recipient of a message to send a dedicated response message.
We also have a basic Java Swing application that connects to a public test broker that enables control of LEDs via the Swing UI. The following animated GIF image shows how you can easily run the example application from the command line.
As the above image shows, the following commands are pasted into a command window:
git clone https://github.com/RealTimeLogic/JavaSMQ.git cd JavaSMQ javac LedSMQ.java java LedSMQ
By running the above commands, we clone the GIT SMQ repository, compile, and run the test application.
The Java SMQ client can be run on any embedded platform with Java support; however, the above example includes SMQ as part of a desktop IoT LED device management app. You can also find a C SMQ stack on GitHub. A copy of the C LED device code is available on repl.it, a website that lets you compile and run C programs online. In the above GIF, we compile and run the C program using the online compiler. The C program, when running, also connects to the online test broker. The C program shows up in the Java Swing UI. The Swing UI then lets us turn the simulated LEDs on and off.
This was a short intro into what can be designed with SMQ. Head over to the JavaSMQ GitHub repository for more information.
Opinions expressed by DZone contributors are their own.