Switch to desktop version  
JAVA Azure IOTHub Connector - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: Java (https://techforum.ewon.biz/forum-53.html)
+--- Thread: JAVA Azure IOTHub Connector (/thread-939.html)



JAVA Azure IOTHub Connector - simon - 07-06-2019

Hi Guys,

For the Flexthink in US, I had a chance to develop a JAVA Addon that eases very much the connection to Azure.
This one is still using the self-signed certificate method for the Authentication (By the way I have now developed a little webpage that allows you to generate the certificates : https://ewonsupport.biz/azurehelper

See this ppt for the setup procedure : 
  16-1430-0 - Azure.pdf (Size: 892,63 KB / Downloads: 383)

PS : The Disconnection detection is at the moment not working properly due to a bug of the firmware 13.x.
This will be fixed in the coming firmware 14. As soon as this one is online, I will update the addon to make everything working perfectly.

[EDIT]
See next post to get the last version

Simon


RE: JAVA Azure IOTHub Connector - simon - 11-12-2019

Hi,

Here attached a new version that you can use in combination with the firmware 14 and >.

This one implements a message buffer to store the messages when the MQTT connection is down.
All stored messages are then sent when the connection is up again.

I have also fixed a problem related to the status tags...

[EDIT]
Version 1.3
In this version where I have added a new IOServer parameter called "changefullflagjson" (0 or 1). This one allows you to get an Json value ""type":"pushonchange" in the json file sent when values are changing (using the changepushtime timer.  You can also disable a timer (fullpushtime or changepushtime) by setting it to 0.
I have also fixed a problem related to the URL used to get certificates and a problem with the timer that made the addon sends messages every seconds regardless of the fullpushtime or changepushtime.

Version 1.4
Reset Counters at a new connection + delete useless debug logs

Version 1.5
Add new CA certificate of Azure IOT Hub (Baltimore Certificate will be deprecated in 2023).
See https://techcommunity.microsoft.com/t5/internet-of-things-blog/azure-iot-tls-critical-changes-are-almost-here-and-why-you/ba-p/2393169

Version 1.6
Increase number of Tags that can be handled (EBD Buffer set to 500000 instead of 5000 bytes)



Simon


RE: JAVA Azure IOTHub Connector - TomHu - 03-09-2021

This thread has been marked as solved. If you have a similar issue, it would be better to post your own thread rather than bump this one, to help keep everybody's different issues separate.

Brilliant, Simon

Hi Simon,

How many tags can the Flexy support if it is only used as an Azure IoT gateway? If I have 100 tags, do you think it can handle it?

Cheers,
Tom


RE: JAVA Azure IOTHub Connector - simon - 06-09-2021

Hi Tom,

Yes, it should support 100 Tags and more.

Simon


RE: JAVA Azure IOTHub Connector - noevargas580 - 27-02-2022

Hi Simon, i can't get the token in tha page https://tools.ewonsupport.biz/#demo when i do click in TOKEN SAS AZURE the page need a user and a pasword


RE: JAVA Azure IOTHub Connector - Manu - 28-02-2022

This thread has been marked as solved. If you have a similar issue, it would be better to post your own thread rather than bump this one, to help keep everybody's different issues separate.

(07-06-2019, 04:00 PM)simon Wrote: Hi Guys,

For the Flexthink in US, I had a chance to develop a JAVA Addon that eases very much the connection to Azure.
This one is still using the self-signed certificate method for the Authentication (By the way I have now developed a little webpage that allows you to generate the certificates : https://ewonsupport.biz/azurehelper

See this ppt for the setup procedure : 

PS : The Disconnection detection is at the moment not working properly due to a bug of the firmware 13.x.
This will be fixed in the coming firmware 14. As soon as this one is online, I will update the addon to make everything working perfectly.

[EDIT]
See next post to get the last version

Simon

Hi Simon,

I can't reach the Azure Helper page. They ask me to fill in a username and password.
In the past that wasn't necessary.

Manu


RE: JAVA Azure IOTHub Connector - simon - 01-03-2022

Hi Manu,

I have just responded to your private message.


RE: JAVA Azure IOTHub Connector - sooter - 07-03-2022

This thread has been marked as solved. If you have a similar issue, it would be better to post your own thread rather than bump this one, to help keep everybody's different issues separate.

(01-03-2022, 01:08 PM)simon Wrote: Hi Manu,

I have just responded to your private message.

I Have the same issue. Where can i get a username and password to generate a certificate for my device. And how long are the certificates typically valid for? 

Do you have a version of the coding that works with SAS 

Thanks in advance.

Kind regards 

David sooter