Hi all. First post.
I am trying to use a CR1000Xe to communicate with an Azure IoT Hub, HTTP requests must generate a "SAS token" for my client. The SAS token (Shared Access Signature) is generated using “device key” and various other details like url, expiry time. These details go through some cryptographic functions to encode them, and are added to the HTTP request so that the IoT hub can verify that the data is coming from a trusted source.
It seems CRBasic does not have built in cryptographic functions. Any data received by the IoT hub would be rejected without a valid SAS token.
Another potential solution is using MQTT instead of HTTP as the protocol. I have investigated and it seems that MQTT also requires a SAS token, however there is a chance that the CRBasic’s MQTT Client functionality may have the cryptography functionality built in, so it would automatically generate the SAS token for you.
More information: I am trying to send a Json data packet every 10mins to the Hub.
Anyone got any experience of this or any example code to try? Thanks in advance!
MarkD