Setup C Virtual Device
Minimal code implementing an UniquID node. It can be used to add UniquID functionalities to the AWS IoT C sdk. Please refer to the README in the repo for further informations.
Install Prerequisites
Install these packages on your machine
How to integrate in the AWS IoT C sdk
Clone the AWS-IoT-sdk
Clone this repository inside the external_libs directory
Clone the uidcore-c library
Clone the mbedtls code
Apply the provided patch, IoT-sdk.patch
Run the C device
Copy in the "certs" directory the CA certificates chain to authenticate the aws-mqtt-proxy and the uniquid mqtt broker. The file must be named rootCA.crt
Press tab to find the right caChain file.
Copy the configuration file (example file) **
Run the sample
** The configuration can also be loaded from AWS_AGENT_CONFIG environment variable
The device will try to connect to the proxy every 10 seconds, for this reason an error message will be reported until you create an UniquID Contract between the C device and the AWS-IOT-UNIQUID-AUTHORIZER to bind these two components.
Only when both the components will receive the contract from the blockchain, the device will be able to connect.
Last updated