Connecting to IoT Edge using the C SDK on macOS

Andrew Fitzpatrick 1 Reputation point
2020-12-09T18:56:23.513+00:00

I am running macOS Catalina 10.15.7 and I am trying to use the downstream sample in the IoT SDK, but I keep getting a SSLHandshake failed error. I used this guide to setup my environment, but I'm not having any luck.

I also spun up an Ubuntu VM, and followed the same guide and I could get the sample to work correctly.

My ultimate goal is to use the SDK in an iOS application, so I first tried using this example app, but I would get the same error.

Is this a bug only related to macOS? Any idea what my next steps should be to get the sample working?

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
576 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
222 questions
{count} votes

1 answer

Sort by: Most helpful
  1. António Sérgio Azevedo 7,671 Reputation points Microsoft Employee
    2020-12-15T12:57:10.35+00:00

    @Andrew Fitzpatrick sorry to hear that you are struggling to get your device connected to Azure IoT Edge as a downstream device. You mentioned that you tried this sample with the same error - https://github.com/Azure-Samples/azure-iot-samples-ios - though that sample is to connect directly to IoT Hub.

    1) Therefore I am assuming that you have the same error when trying to connect to Azure IoT Edge acting as a transparent gateway as well as when you connect directly to Azure IoT Hub? Please confirm.

    I also recommend that you try using the Azure SDK for Embedded C : https://github.com/Azure/azure-sdk-for-c

    We are working on that SDK actively and have a walkthrough on how to setup your MAC to run the samples: https://github.com/Azure/azure-sdk-for-c/#mac

    Thank you so much for your time so far!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.