Skip to content
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

Register and Connect over application gateway #2644

Closed
aleksandarkrstic opened this issue Sep 6, 2024 · 0 comments
Closed

Register and Connect over application gateway #2644

aleksandarkrstic opened this issue Sep 6, 2024 · 0 comments
Labels

Comments

@aleksandarkrstic
Copy link

aleksandarkrstic commented Sep 6, 2024

Hello,

I have application gateway that is in this format:
ip-address/dps that routes the traffic global.azure-devices-provisioning.net
and
ip-address/iot that routes the traffic to myiothub.azure-devices.net

My question is: What do I need to do in Azure IoT C SDK in Prov_Device_Create (or anything else) to be able to register device to my iothub not hitting global.azure-devices-provisioning.net but hitting my application gateway instead that will route the traffic to global.azure-devices-provisioning.net?

Also, what do I need to do after successful registration to connect device to my iot hub also not hitting iot hub directly but hitting my application gateway instead that will route the traffic to iot hub?

Can you provide code samples please if such thing is possible?

For example, imagine that 203.0.113.10/dps application gateway routes the traffic to global.azure-devices-provisioning.net.
Prov_Device_Create("203.0.113.10/dps",iot_hub_scope_id, Prov_Device_MQTT_WS_Protocol) won't work and I am getting PROV_DEVICE_RESULT_TRANSPORT error, how to fix that?

Much appreciated.
Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant