Page 1 of 1

esp-azure question

Posted: Mon Nov 25, 2019 4:38 am
by zliudr
There seems to be no sub-forum for esp-azure. I have some questions:
There is an infinite loop in the device twin sample code:

Code: Select all

                while (1) {
                    IoTHubDeviceClient_LL_DoWork(iotHubClientHandle);
                    ThreadAPI_Sleep(10);
                }
I need to use iotHubClientHandle to upload blob. I wonder if I can use this handle in a separate task without crashing the system. Can different tasks share this handle? The handle is created as a local variable in the sample code.

Thanks.

Re: esp-azure question

Posted: Mon Nov 25, 2019 7:21 am
by zliudr
Any working example of blob upload will be greatly appreciated!