-
Couldn't load subscription status.
- Fork 189
Looking to connect STM B-L475E-IOT01A to existing Azure IoT Hub not Central #195
-
Hello,
I have an existing Azure IoT hub in existence and hoping to connect the BL475 to it.
so got the "getting started project" installed on my win10 machine, did a test run of compile, toolchain is installed and successfully producing a .bin file for BL475.
so what do I need to change in the azure_config.h file to configure my device with my existing iot hub?
I know I have a to create a device and proper name in IoT hub.
I am not using DPS.
I have connected raspberry pi with azure iot python client which is able to connect to this iot hub without issues etc so we know the iot hub is functioning and other devices can connect in and report telemetry etc.
advice appreciated.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 3 replies
-
Hi @ejeyaseelan,
We are currently working on documentation to describe connecting the device to Hub instead of Central.
You will need to:
Beta Was this translation helpful? Give feedback.
All reactions
-
Thx @ryanwinter thats what I thought.
Getting the following error:
image
Beta Was this translation helpful? Give feedback.
All reactions
-
The 0xA3 is an NX_DNS_QUERY_FAILED error which is a result of the hub hostname containing the "HostName=" string at the beginning. If you remove the "HostName=" then DNS will resolve and it will attempt to connect.
Beta Was this translation helpful? Give feedback.
All reactions
-
success !!
Device id: stm32_bl475
Connected to IoT Hub
SUCCESS: Azure IoT Hub client initialized
thank you for the help @ryanwinter
looking forward to the solution where it would be possible to connect a dev kit to a compile kitchen in the cloud, hopefully in a secure fashion (dont wanna open up firewall ports and such!)
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1