This Python sample app is used by the getting started content to demonstrate how easy it is to create an IoTHub Instance on Azure portal, and register a new device for the IoTHub, then send a message from device (simulated device app) to cloud.
I get the device registered. but for Msgsender doesn't work with the right connect string.
(u'{"Message":"ErrorCode:IotHubUnauthorizedAccess;Unauthorized","ExceptionMessage":"Tracking ID:3e57bdabb01c47758d40614d7b5099c5-G:5-TimeStamp:02/02/2018 18:10:22"}', 401)
I get the device registered. but for Msgsender doesn't work with the right connect string. (u'{"Message":"ErrorCode:IotHubUnauthorizedAccess;Unauthorized","ExceptionMessage":"Tracking ID:3e57bdabb01c47758d40614d7b5099c5-G:5-TimeStamp:02/02/2018 18:10:22"}', 401)