Azure IOT questions

When I try to connect to Azure I need a certificate. What is the needed file extension? .cer?

I am also courius about the variables i need to fill
var sas = new SharedAccessSignatureBuilder()
{
Key = “your key”,
KeyName = “iothubowner”,
Target = “Your.azure-devices.net”,
TimeToLive = TimeSpan.FromDays(1) // at least 1 day.
};
Key is what i obtain from the iothubowner policy at the iot hub. Target is my.azure-devices.net/devices/device1 as i read at azure docs, but you miss the /devices/device1. Which i right?

the azure docs are right, please update

Friendly community reminder. The docs are on github at GitHub - ghi-electronics/Documentation: GHI Electronics' official technical documentation

If you spot a documentation bug or have a suggestion or comment, you can open a PR there to make the change yourself, or open an issue to get tended to by GHI as they can get to it.

I have created the following issue in the GHI docs repo : GHI Azure IoTHub documentation differs from msft documentation · Issue #796 · ghi-electronics/Documentation · GitHub

1 Like

Thanks @mcalsyn you have always been a great support.

Santa is stopping by this year :stuck_out_tongue_winking_eye:

1 Like

I don’t think it’s my job to update the docs, as i don’t get paid for it and don’t sell these products. Also, the recieving methond doesen’t work. What to do? I can connenct and send, but the recieved messages don’t appear.

Correct, you don’t need to fix. You just need to point out any errors and we will take care of it. The best way is in creating an issue on GitHub.

But if someone wants to help then we greatly appreciate it.

1 Like

A lot of the assistance provided on this forum is from members who are not paid for their contributions. Do you wish to take advantage of their wisdom?

Interesting… first time I have been sarcastic for several years.

1 Like