How to integrate IOT hub to NXP TPM on Android NDK

Netanel Hadad 20 Reputation points Microsoft Employee
2023-02-19T15:27:51.0633333+00:00

I have a microprocessor that runs AOSP and includes NXP HSM.

The connection to the NXP is over I2C.

Now I want to integrate the Azure IOT hub but didn't find a good example of how to do that by cpp code, runs on an Android environment.

I need the certificate for the provisioning step but found only python scripts in the NXP tutorials.

Is someone here succeeded to do so?

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,272 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 36,766 Reputation points MVP Volunteer Moderator
    2023-02-19T22:49:54.5366667+00:00

    Hello @Netanel Hadad ,

    although it's possible to connect to the Azure IoT Hub using native MQTT, it's recommended to use one of the Azure IoT Device SDKs for intrinsic robustness.

    Regarding the HSM usage, I do not see an example mentioned. You can always open a request issue on GitHub (see the examples link).

    You can connect directly to an IoT Hub but it's also recommended to connect to the Azure IoT Device Provisioning Service. It redirects your device to an IoT Hub based on current or future rules.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.