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.
#1
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 ewonsupport.biz server and unencrypted communication.

This project is based on the new JAVA ETK 1.4.2 and the Eclipse IDE. See https://developer.ewon.biz/content/java-0

This is the equivalent of what is available in BASIC : https://techforum.ewon.biz/thread-473.html

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

Simon


Attached Files
.zip   MQTT_EWONSUPPORT.zip (Size: 9,08 KB / Downloads: 66)
  Reply
#2
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 (https://github.com/Azure/azure-iot-sdk-j...x-setup.md) 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 (https://developer.ewon.biz/content/java-0#dev-documents) 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?

Regards,
René
  Reply
#3
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 (https://techforum.ewon.biz/thread-561.html) or JAVA (https://techforum.ewon.biz/thread-586.html)

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

Simon
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  can JAVA get infos on FLB 3204 connection status ? lgn@ltr@n 0 45 20-11-2018, 10:22 AM
Last Post: lgn@ltr@n
  How to include an external jar into the Flexy timon 6 180 08-11-2018, 09:40 AM
Last Post: timon
  Connect eWON Flexy to Azure (MQTT/AMQP) mochr 1 110 07-11-2018, 11:50 PM
Last Post: simon
  MQTT client disconnection ? lgn@ltr@n 2 113 23-10-2018, 08:16 AM
Last Post: lgn@ltr@n
  MQTT client stability ? lgn@ltr@n 1 123 05-10-2018, 05:13 PM
Last Post: ntnunk
  Connect to google cloud MQTT with Ewon Flexy 205 ? lgn@ltr@n 6 391 03-10-2018, 05:43 PM
Last Post: lgn@ltr@n
  Java - mqtt - mosquitto bcallewaert@molcy.com 9 715 24-09-2018, 06:01 PM
Last Post: simon
  Java and AWS IoT ntnunk 4 934 18-09-2018, 02:15 PM
Last Post: lgn@ltr@n
  Update to Java 1.6 Koos 1 235 17-08-2018, 11:20 AM
Last Post: simon
  Java application not starting at boot time mgris 5 1.054 17-07-2018, 03:03 PM
Last Post: simon

Forum Jump:


Users browsing this thread: 1 Guest(s)