This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

By registering to the eWON TechForum, you agree to the HMS Privacy Policy.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

eWON TechForum is meant to answer all questions concerning the development realized with or in an eWON device, in collaboration (or not) of Talk2M service, destined to take advantage of IIOT... This targets coding (Basic, Java, HTML, ...), viewON, APIs, Flexy oriented questions.

If you need help to set up an eWON device, establish a connection from/to an eWON, Cosy 131 related matters... please refer to your eWON distributors first as he is probably the best choice to quickly troubleshoot configuration issue.

If you are not sure, post your questions into the relevant section here under and someone will guide you so you can receive the correct answer.

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Started with MQTT on your Flexy using JAVA.
Hi Guys,

Here is a JAVA project example that shows you how to publish and subscribe messages on a MQTT broker.
This example uses the MQTT broker of our server and unencrypted communication.

This project is based on the new JAVA ETK 1.4.2 and the Eclipse IDE. See

This is the equivalent of what is available in BASIC :

See also : Connect your Flexy to AWS IoT through MQTT using JAVA


Attached Files
.zip (Size: 9,08 KB / Downloads: 93)
Hello Simon, hello Flexy users,

we want to use the Azure IotHub Device SDK for a Java Program running on the Flexy 205.
On the github page for the IotHubSDK ( it's stated that
"To use the SDK and run the samples you will need Java SE 8."
This means Java 1.8.x.

On the ewon programming for java page ( it says
"The eWON JAVA toolkit (v1.4.2 | Release note) is designed around the J2SE (JAVA Standard Edition) technology. "

This means Java 1.4.x.

Does this mean, we should not even try to use the SDK because it will not work anyways?
Is there a known way to make it work?

If there is no way right now - when will an update be available which will enable the usage of the SDK?

Hi Rene,

Yes, this SDK won't work with the Flexy.

However, you can use our MQTT apis to build your own client in BASIC ( or JAVA (

Regarding the JVM update, it is something we consider for the future but most probably not on this hardware platform.


Possibly Related Threads...
Thread Author Replies Views Last Post
  MQTT issue AudreyCim 3 52 21-03-2019, 11:19 AM
Last Post: simon
  Java 1.4 update tomT 3 43 21-03-2019, 10:57 AM
Last Post: simon
  Connect Azure IoT Hub with Java MQTT_EWONSUPPORT tp.santos 1 40 12-03-2019, 07:10 PM
Last Post: simon
  Reading DINT via Java issue tomT 2 193 05-03-2019, 10:41 PM
Last Post: tomT
  MQTT Connection Status ntnunk 2 622 04-03-2019, 07:14 PM
Last Post: ntnunk
  MQTT on Azure IOTHub jean-christophe.alt 1 564 30-01-2019, 11:27 AM
Last Post: simon
  can JAVA get infos on FLB 3204 connection status ? lgn@ltr@n 3 323 14-12-2018, 02:25 PM
Last Post: lgn@ltr@n
  How to include an external jar into the Flexy timon 8 797 13-12-2018, 11:48 PM
Last Post: simon
  Connect eWON Flexy to Azure (MQTT/AMQP) mochr 1 390 07-11-2018, 11:50 PM
Last Post: simon
  MQTT client disconnection ? lgn@ltr@n 2 364 23-10-2018, 08:16 AM
Last Post: lgn@ltr@n

Forum Jump:

Users browsing this thread: 1 Guest(s)