question

87035596 avatar image
0 Votes"
87035596 asked SandervandeVelde42 edited

how to separate between internal trafic protocol and upstream protcol in iot edge ?

I want to separate bet two used protocol that edgeHub module use them to connect with hub and edge internal traffic
In my case i used MQTT as internal protocol bet edge modules and devices locally , and want to AMQP as upstream traffic with IoT hub , can i separate bet 2 traffic and determine protocol to each traffic ?

azure-iot-hubazure-iot-edgeazure-iot
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @87035596

You might have already gone through this document: How an IoT Edge device can be used as a gateway
Topics on
Transparent gateways
Translation gateways

0 Votes 0 ·

Sure , but i mean protocols internally bet modules not external input and output protocols of edge

0 Votes 0 ·

1 Answer

SandervandeVelde42 avatar image
1 Vote"
SandervandeVelde42 answered SandervandeVelde42 edited

The traffic between modules is separated by default, by using separate configurations.

The upstream protocol configuration is part of the container create options and environment variables of the EdgeHub.

In the create options, alternative ports can be set.

In the environment variables, you can disable unused (or unwanted) protocols

amqpSettings_enabled
mqttSettings
enabled
httpSettings
_enabled

(Note: the formatting corrupts the double underscored needed!)

Keep in mind that this must be on par with the initial edgeAgent settings within the config,yaml. If you want to use eg. WebSockets, you need to specify is there also.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.