I have a scenario where data comes from a module and i send it to IOT Hub in another module. When internet is not working the messages are stored in a queue by a in built azure function. I want to store these data locally so that if my system crashes these data does not vanish.
When there is no internet the interpreter is not coming out of the function send_message_to_output() since its waiting for a Ack from the cloud , which won't happen until the network is back.
Is there any function I can use to store these data locally even when there is no internet or is there any work around for this?