-
Notifications
You must be signed in to change notification settings - Fork 93
az_http_client_send_request #135
Description
Hi, wondering if I could get a word of advice on implementing az_http_client_send_request
I'm trying to upload some blobs to azure from a esp32.
I see this example https://github.com/Azure/azure-iot-arduino/blob/master/examples/esp32/iothub_ll_telemetry_sample/iothub_ll_telemetry_sample.ino, which I got working and then modified if to implement an upload to blob function, going through the IOTHub system -- but it is quite slow, and I think not the ideal method.
And I see this new library
https://github.com/antkmsft/azure-sdk-for-c/tree/blob-upload using the azure-sdk-for-c which goes directly to the azure container, but requires me to implement az_http_client_send_request
https://github.com/Azure/azure-sdk-for-c#using-your-own-http-stack-implementation
I went through this procedure https://github.com/Azure/azure-sdk-for-c/blob/main/sdk/samples/iot/aziot_esp32/readme.md
which works fine (modified for the new upload to blob support), and builds the new library that has the additional upload to blob functionality - and that example works for fine for mqtt data.
But when I try to build the actual upload to blob code, I get this error.
undefined reference to
az_http_client_send_request'`
I have all the arduino libraries, such as this one https://github.com/Azure/azure-iot-arduino, https://github.com/Azure/azure-iot-arduino-protocol-http, https://github.com/Azure/azure-iot-pal-arduino, ...
But I cannot find that compiler or linker command to link az_http_client_send_request to the http wifi stack that I think is implemented here in iot-arduino and AzureIoTSocket_WiFi, etc.
This program implements az_http_client_send_request with its own code RoSchmi/AzureDataSender_Esp32#1 (comment)
So, any ideas would be appreciated.