Im a developer with many years experience, but a newbie to azure and to python
I am working on an IoT project where I have a number of Raspberry Pi units sending telemetry data to Azure. To facilitate this I have set up the following in the cloud
1 x IoTHub, F1 - Free
1 x Stream Analytics job
On my raspberry pi units, I have written some client (in Python) that send data to my hub.
All seems to fine until I exceed my message quota (8k per day on F1 tier). Once this happens, each attempt to send a message from any device, results in that device hanging. I need to handle this as I cant have all of my field units disabled if message quota limits are reached. I know that I can upgrade my IoTHub to give me more messages, but the question will still arise once I reach the limit of the pricing tier that I select.
My code (simplified) is...
client = IoTHubDeviceClient.create_from_connection_string(connectionString)
message = Message(messageTemplate.format(....))
client.send_message(message)
once my IoTHub message quota has been exceeded, the client.send_message(message) instruction hangs
Can someone advise on the recommended way of dealing with this.
Thanks




