DZone
IoT Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > IoT Zone > Java IoT Device Management

Java IoT Device Management

Java SMQ is the answer to all of your IoT device management needs.

Wilfred Nilsen user avatar by
Wilfred Nilsen
·
Dec. 17, 18 · IoT Zone · Presentation
Like (4)
Save
Tweet
15.61K Views

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.

Image title

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.

Java (programming language) IoT

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Creating an Event-Driven Architecture in a Microservices Setting
  • Container Orchestration Tools Comparison
  • Pattern Matching for Switch
  • My Sentiments, Erm… Not Exactly

Comments

IoT Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo