-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for "Upload To Blob" feature (CA-19) #68
base: master
Are you sure you want to change the base?
Conversation
Hi, I checkout and try to build it. I received the following error. CMake Error at D:/ESP/esp-idf/tools/cmake/component.cmake:449 (add_library):
The base64.c has been rename azure_base64.c |
Which version of esp-idf are you using? I try to build the with the release/v4.0 Another error that I can't fix. D:/ESP/esp-azure-goobie/azure-iot-sdk-c/c-utility/inc/azure_c_shared_utility/strings.h:18:1: error: unknown type name 'MU_IF' |
I am using esp-idf v3.2.3 with the Makefile build system. |
Hi, I finally make it works with CMakefile changes and idf v3 but my problem with the upload don't works when connecting to iot hub using x509 certificate. Sending messsage, direct method, registration using provisioning service works fine, but not upload. Upload works with sas but not certificate. Thanks, |
Hi Frederic. |
Hi, I didn't find where is the probleme exactly. IoTHub SDK doesn't upload the file directly to the hub. It is supposed to implement the valet key pattern. I believe that the problem is at the level of the request to receive the key and not for the upload .... for the moment at least. I fix it by upload the file to a .net core 3 api with certificate authentication. The same certificate use for the provisioning. I cannot upload it directly to the blob using the valet key pattern because the blob doesn't support uploading with many chunk... or I didn't find how to do it. Hopefully they will fix it one day! |
@giroudon , thanks for the contribution. Do you mind adding examples for the features, in line with the other examples? That will make this PR complete. |
096166c
to
a701533
Compare
Co-authored-by: Aurélien Chevé
MQTT-over-WebSocket support now added to iothub_client_sample_mqtt/. Can be enabled from menuconfig (option "Example Configuration/MQTT over WebSocket"). |
@giroudon , sorry for the late response. Can you make these changes
If you do not have enough time to make these changes, can you atleast take care of the last point and we will try to take up the rest internally. |
Hi guys! Is there any progress on this issue? The option to have MQTT over WebSocket is really quite cruical, and to have an officially supported version of this by Espressif is something that we would need in order to use your product on a large scale. |
As we are urgently waiting for the MQTT over WebSocket feature I have tested whether the implementation by @giroudon works for us. I have cloned the fork from goobie-lab:master, used it in our project and unfortunately it does not work for us. Even the example iothub_client_sample_mqtt does not work, once I enable the SAMPLE_MQTT_OVER_WEBSOCKET config via menuconfig. It gives me the following linker error: Tested with esp-idf version v4.1. @giroudon Does the example work for you? Which esp-idf version are you using for your tests? Please find the compiler log attached. |
@daniel-grabner, the MQTT over WS is currently integrated on a commercial product using esp-idf 3.3.5. I confirm it is not yet operational on esp-idf 4. I will try to solve this issue as soon as possible (well I hope so... I do not have much time these days). On esp-idf 3, you also need to checkout a recent version of mbedtls (2.16.7-idf) with the following command: |
Since I would like to have these fixes for WebSockets available, I decided to give a hand |
Hello Esspressif Crew,
Here are some edits to support "Upload To Blob" operations in esp-azure.
This required 2 things :
Regards