espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
453 stars 152 forks source link

building example project missing member in struct (MEGH-3650) #135

Open PratikMistry-cbi opened 2 years ago

PratikMistry-cbi commented 2 years ago

Hi.

I'm trying to build the example switch project of the esp-rainmaker. However receiving the following error.

error: 'esp_local_ctrl_config_t' {aka 'struct esp_local_ctrl_config'} has no member named 'proto_sec' config.proto_sec.version = sec_ver; ^ C:/Users/Pratik.Mistry/esp/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_local_ctrl.c:293:15: error: 'esp_local_ctrl_config_t' {aka 'struct esp_local_ctrl_config'} has no member named 'proto_sec' config.proto_sec.custom_handle = NULL; ^ C:/Users/Pratik.Mistry/esp/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_local_ctrl.c:297:15: error: 'esp_local_ctrl_config_t' {aka 'struct esp_local_ctrl_config'} has no member named 'proto_sec' config.proto_sec.pop = pop; ^ [1137/1144] Building ASM object esp-idf/esp_rainmaker/CMakeFiles/idf_esp_rainmaker.dir//__/rmaker_claim_service_server.crt.S.obj ninja: build stopped: subcommand failed. ninja failed with exit code 1

please assist

shahpiyushv commented 2 years ago

@PratikMistry-cbi , have you pulled in the latest esp-rainmaker which has some fixes for newer idf versions?

PratikMistry-cbi commented 2 years ago

@shahpiyushv yes on 2f0f5e0 branch

shahpiyushv commented 2 years ago

@PratikMistry-cbi , what is your esp-idf version?

PratikMistry-cbi commented 2 years ago

@shahpiyushv on version 4.3.1 using esp-idf extension through vs code