Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Looking to connect STM B-L475E-IOT01A to existing Azure IoT Hub not Central #195

Locked
ejeyaseelan started this conversation in General
Discussion options

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.

You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

Hi @ejeyaseelan,

We are currently working on documentation to describe connecting the device to Hub instead of Central.

You will need to:

  1. Comment this line to enable Hub mode
  2. Uncomment this line and enter the hub hostname
  3. Uncomment this line and enter the device id
  4. Enter the SAS key as here
You must be logged in to vote
3 replies
Comment options

Thx @ryanwinter thats what I thought.

Getting the following error:
image

Comment options

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.

Comment options

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!)

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

AltStyle によって変換されたページ (->オリジナル) /