Setup C Virtual Device
Last updated
Last updated
Minimal code implementing an UniquID node. It can be used to add UniquID functionalities to the . Please refer to the in the repo for further informations.
Install these packages on your machine
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
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.
Run the sample
** The configuration can also be loaded from AWS_AGENT_CONFIG environment variable
Only when both the components will receive the contract from the blockchain, the device will be able to connect.
Copy the configuration file () **
The device will try to connect to the proxy every 10 seconds, for this reason an error message will be reported until you between the C device and the AWS-IOT-UNIQUID-AUTHORIZER to bind these two components.