Azure / azure-iot-arduino

Azure IoT library for the Arduino
Other
168 stars 95 forks source link

Doc improvements : device setup clarifications #64

Closed ddewaele closed 6 years ago

ddewaele commented 7 years ago

I noticed some links in the README that are broken:

It also wasn't immediately clear to me that I needed to

When I pasted the one from the azure portal it didn't work

static const char* connectionString = "HostName=xxxx.azure-devices.net;DeviceId=arduino-mkr1000;SharedAccessKey=xxxxx";

When creating a SAS token for my device (iothub-explorer sas-token), and using that in the connection string it worked

static const char* connectionString = "HostName=xxxx.azure-devices.net;CredentialType=SharedAccessSignature;DeviceId=arduino-mkr1000;SharedAccessSignature=SharedAccessSignature sr=xxxx.azure-devices.net%2Fdevices%2Farduino-mkr1000&sig=xxxx&se=1503763760";

However, these SAS tokens expire after one hour and it's not immediately clear to me how to get them refreshed from the mkr1000.

Should the sample work with a regular connection string (without the sas token) also ?

JetstreamRoySprowl commented 6 years ago

@ddewaele : Thanks for the report. The broken links in the Arduino libraries have been checked into master and will be fixed in the next Arduino release cycle in a week or so.

For the other issues I'll tag @iluican, who owns the mkr1000 repo you refer to.