Ewon TechForum
Providing technical solutions to technical requests



JAVA Azure IOTHub Connector
simon Offline
eWON Support
#1
Solved: 14-07-2020, 11:05 AM
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 : 
.pdf   16-1430-0 - Azure.pdf (Size: 892,63 KB / Downloads: 419)

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
Reply

simon Offline
eWON Support
#2
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/i...-p/2393169

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



Simon


Attached Files
.zip   MQTT_AZURE_V1.6.zip (Size: 12,98 KB / Downloads: 58)
.zip   MQTT_AZURE_V1.6_Source.zip (Size: 3,58 MB / Downloads: 54)
Reply

TomHu Offline
Ewon Distributor
#3
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
Reply

simon Offline
eWON Support
#4
Hi Tom,

Yes, it should support 100 Tags and more.

Simon
Reply

noevargas580 Offline
Junior Member
#5
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
Reply

Manu Offline
Junior Member
#6
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
Reply

simon Offline
eWON Support
#7
Hi Manu,

I have just responded to your private message.
Reply

sooter Offline
Junior Member
#8
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
Reply




Possibly Related Threads…
05-09-2025, 10:16 AM
Last Post: simon
27-09-2024, 04:38 PM
Last Post: simon
  Azure Event Hubs, SAS Token Started by dmned
5 Replies - 5.489 Views
15-03-2024, 02:51 PM
Last Post: simon
04-07-2023, 03:42 PM
Last Post: simon
04-05-2023, 05:18 PM
Last Post: simon
28-04-2023, 06:19 PM
Last Post: simon
16-03-2023, 11:03 AM
Last Post: ofitz
22-02-2023, 03:42 PM
Last Post: zconverse
03-01-2023, 06:52 PM
Last Post: simon
22-12-2022, 01:07 PM
Last Post: simon



Users browsing this thread:
3 Guest(s)



Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy