For some reason today after 2 months my IoT hub connection string did not work anymore which gave me a :
Exception when sending message:{"Message":"ErrorCode:IotHubUnauthorizedAccess;Unauthorized","ExceptionMessage":""}
I later found out that my connectionString changed in the IoT for which I use a free license. Even though I updated my connectionString to the new one I still get the same error which makes me wonder:
Does Azure IoT hub require you to change your connectionString every now and then? If yes does anyone know a best practice to do this automatically?
Does IoT Hub require you to have the most recent SDK's from Microsoft.azure.devices. and Microsoft.Azure.devices.client ?
As far as I know it just randomly stopped working over the weekend without any explanation and I have no clue why because there where 0 changes in the code or in Azure from me.