-
Notifications
You must be signed in to change notification settings - Fork 64
Fixes #2126 - Adds configuration of upstream protocol in cloud based mode #2129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
090eead to
e4db540
Compare
Currently supports Amqp or AmqpWs
Amqp was the default protocol in cloud-based mode before, keeping it the same for compatibility
e4db540 to
c013efd
Compare
|
@microsoft-github-policy-service agree company="Michelin" |
|
We cannot run the CI on this branch, therefore it is not possible to merge it at the moment. I am currently in travel I will have a look when I come back |
| using System.Threading; | ||
| using System.Threading.Tasks; | ||
| using LoRaWan.NetworkServer; | ||
| using LoRaWan.NetworkServer.Extensions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to revert this change to have it compiled
| using System; | ||
| using System.Threading; | ||
| using LoRaWan.NetworkServer; | ||
| using LoRaWan.NetworkServer.Extensions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to revert this change to have it compiled
|
Hi @Mandur Thanks for the feedback. Weird about the revert, we have a working build on our environment. It's true I didn't check the unit tests though ! |

PR for issue #2126
What is being addressed
Adds the ability to configure the Upstream Protocol for AMQP communication between Azure Device Clients and Azure IoT Hub in cloud-based mode.
This setting was present in the edgeHub module when not in cloud-based mode and the LNS forced communication in AMQP TCP, which uses different port than AMQP WS and can break in restricted network environments.
How is this addressed
UPSTREAM_PROTOCOLenvironment variable and anUpstreamProtocolproperty in the LNS configurationAmqporAmqpWs)Amqp) the default value (same as before)