-
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
MQTT over websocket not compiling (CA-24) #62
Comments
@liudr , even I tried giving this a shot, trying to fix some compilation issues, but there seem to be quite some dependencies. We may take this up later. |
@shahpiyushv , |
@shahpiyushv If the problem is not going to be solved in esp-azure port we need to look for alternatives. Talking about 20k of ESP32 per annum. Can you give an estimation of when MQTT over websockets is going to be implemented by Espressif? |
Any update on the possibility of MQTT_OVER_WEBSOCKETS? Thanks. |
+1 |
+1 |
Fixing issue described in #90 and adding: const IO_INTERFACE_DESCRIPTION* socketio_get_interface_description(void) to platform code fixes compilation, and allows MQTT over WebSocket. |
And #include "azure_c_shared_utility/wsio.h" ? Still have the error "undefined reference to `Prov_Device_MQTT_WS_Protocol'" even with the esp-idf from today... |
MQTT over WebSocket now works on my cloned repo. Please see Pull request #68, which now includes "Upload to Blob" and "MQTT over WebSocket" features. |
MQTT over websockets works for me when following @MartinTJDK's instructions
Is there a reason these files are absent and am I supposed to add them somewhere else? |
If I enable the SAMPLE_MQTT_OVER_WEBSOCKETS option, the device twin sample code fails to compile:
C:/Users/user/Downloads/msys32/home/user/esp/esp-azure/examples/iothub_devicetwin_samples_and_methods/build/main\libmain.a(iothub_client_device_twin_and_methods_sample.o):(.literal.iothub_client_device_twin_and_methods_sample_run+0x4): undefined reference to `MQTT_WebSocket_Protocol'
collect2.exe: error: ld returned 1 exit status
make: *** [C:/Users/user/Downloads/msys32/home/qk9446me/esp/esp-idf/make/project.mk:483: /home/user/esp/esp-azure/examples/iothub_devicetwin_samples_and_methods/build/iothub_devicetwin_samples_and_methods.elf] Error 1
Seems like this protocol is not found. What am I missing? Thanks.
The text was updated successfully, but these errors were encountered: