esp-mesh-lite icon indicating copy to clipboard operation
esp-mesh-lite copied to clipboard

Bump esp-iot-bridge version to 0.3 to get USB bridge working (AEGHB-96)

Open redfast00 opened this issue 2 years ago • 3 comments

We'd like to use the new USB bridge feature with esp-mesh-lite. I've set espressif/iot_bridge: ">=0.3" in components/mesh_lite/idf_component.yml, but this results in the following error:

/home/user/Projects/mesh/esp-mesh-lite/examples/mesh_local_control/managed_components/espressif__iot_bridge/src/bridge_usb.c:30:10: fatal error: tinyusb.h: No such file or directory
   30 | #include "tinyusb.h"
      |          ^~~~~~~~~~~
compilation terminated.

redfast00 avatar Mar 13 '23 18:03 redfast00

This is very likely caused by https://github.com/espressif/esp-iot-bridge/issues/39

redfast00 avatar Mar 13 '23 19:03 redfast00

Thank you for your feedback, you can add the following patch to the code for now, we will update the example for the NIC solution later.

You can refer to https://github.com/espressif/esp-iot-bridge/issues/39 and we will update iot-bridge later to better support usb_device.

For now, you can temporarily modify the esp-iot-bridge repository and push a branch to your repository, then you can temporarily modify the yml file under the mesh_lite component by changing espressif/iot_bridge: 0.* to

iot_bridge:
    path: components/iot_bridge
    git: Your github repository address
    version: xxxxxx

tswen avatar Mar 14 '23 02:03 tswen

@tswen Thank you for the temporary workaround!

I'd like to avoid having to document this temporary workaround, would it be okay if I made a PR with the patches you suggested?

redfast00 avatar May 29 '23 15:05 redfast00