espressif / esp-iot-bridge

A smart bridge to make both ESP and the other MCU or smart device can access the Internet.
Apache License 2.0
140 stars 49 forks source link

esp_pbuf_allocate not found (AEGHB-124) #41

Open gussstav opened 1 year ago

gussstav commented 1 year ago

I am trying to compile the 4G hotspot example, but I get this error message. I can't find esp_pbuf_allocate anywhere. Am I missing some include or component?

components\iot_bridge\src\bridge_spi.c:175:9: error: implicit declaration of function 'esp_pbuf_allocate' [-Werror=implicit-function-declaration]

tswen commented 1 year ago

May I know what version of esp-idf you are using?

It is recommended to use IDF version 4.4 or 5.0 for compilation.

gussstav commented 1 year ago

I am using 5.0.1, maybe I should downgrade to 5.0?

tswen commented 1 year ago

Have you enabled the "BRIDGE_DATA_FORWARDING_NETIF_SPI" configuration option in menuconfig? I would like to know which netif you need to use for your project.

I was able to compile using "release/v5.0", so it seems like there might be something wrong with your IDF environment or the submodules are not updated.

gussstav commented 1 year ago

I did enable BRIDGE_DATA_FORWARDING_NETIF_SPI, I want to bridge an SPI ethernet controller with the 4G modem

I downgraded to V5.0 and reinstalled everything. It compiles now, thank you for your help