Does anyone have this working on PlatformIO ESP-IDF?

dfrenkel
Posts: 12
Joined: Sun Jul 22, 2018 1:52 pm

Does anyone have this working on PlatformIO ESP-IDF?

Postby dfrenkel » Fri Oct 22, 2021 5:51 am

Does anyone have this working on PlatformIO ESP-IDF? I'm not sure where to put the esp-rainmaker folder in PlatformIO

dfrenkel
Posts: 12
Joined: Sun Jul 22, 2018 1:52 pm

Re: Does anyone have this working on PlatformIO ESP-IDF?

Postby dfrenkel » Sun Oct 24, 2021 6:26 pm

A quick update, I don't recommend using PlatformIO for Rainmaker because the Menuconfig in PlatformIO does not contain the required options that Rainmaker needs so it will not work until the Devs at PlatformIO update it

endlessparadigm
Posts: 16
Joined: Mon Oct 25, 2021 4:15 am

Re: Does anyone have this working on PlatformIO ESP-IDF?

Postby endlessparadigm » Mon Oct 25, 2021 4:20 am

I have been able to setup, compile and run rainmaker as a component in platformIO project.
I am however using esp-idf and NOT arduino as a framework.

endlessparadigm
Posts: 16
Joined: Mon Oct 25, 2021 4:15 am

Re: Does anyone have this working on PlatformIO ESP-IDF?

Postby endlessparadigm » Thu Oct 28, 2021 10:29 pm

Also make sure to have this in your platform.ini file

Code: Select all

board_build.embed_txtfiles = 
	components/esp_rainmaker/server_certs/rmaker_mqtt_server.crt
	components/esp_rainmaker/server_certs/rmaker_claim_service_server.crt
	components/esp_rainmaker/server_certs/rmaker_ota_server.crt
	components/esp_insights/server_certs/mqtt_server.crt

itymoneus
Posts: 1
Joined: Tue Mar 22, 2022 8:21 am

Re: Does anyone have this working on PlatformIO ESP-IDF?

Postby itymoneus » Tue Mar 22, 2022 9:03 am

Good morning,

the info with the certificates helped a bit.

But still struggling with the very beginnings, making inclusion of headers/components work (cmake still quite new too me).
Any idea where platform.ini needs to be located ? And whether cmake config needs adjustments ?

Thanks a lot!

Symptons:

Code: Select all

examples/switch/main/app_main.c:27:10: fatal error: app_wifi.h: No such file or directory
Config (platform.ini lying in folder above components and examples):

Code: Select all

[platformio]
src_dir = examples/switch/main

[env:esp32]
platform = espressif32
board = esp-wrover-kit
framework = espidf
upload_speed = 115200
board_build.embed_txtfiles = 
           components/esp_rainmaker/server_certs/rmaker_mqtt_server.crt
           components/esp_rainmaker/server_certs/rmaker_claim_service_server.crt
           components/esp_rainmaker/server_certs/rmaker_ota_server.crt
;         components/esp_insights/server_certs/mqtt_server.crt

brainstorm
Posts: 27
Joined: Mon Dec 12, 2016 12:22 pm

Re: Does anyone have this working on PlatformIO ESP-IDF?

Postby brainstorm » Wed Mar 23, 2022 3:33 pm

Check my branch's CMakefiles: https://github.com/brainstorm/yigedianq ... -rainmaker

I had the same problem as you did just 1-2 days ago, good luck ;)
itymoneus wrote:
Tue Mar 22, 2022 9:03 am
Good morning,

the info with the certificates helped a bit.

But still struggling with the very beginnings, making inclusion of headers/components work (cmake still quite new too me).
Any idea where platform.ini needs to be located ? And whether cmake config needs adjustments ?

Thanks a lot!

Symptons:

Code: Select all

examples/switch/main/app_main.c:27:10: fatal error: app_wifi.h: No such file or directory
Config (platform.ini lying in folder above components and examples):

Code: Select all

[platformio]
src_dir = examples/switch/main

[env:esp32]
platform = espressif32
board = esp-wrover-kit
framework = espidf
upload_speed = 115200
board_build.embed_txtfiles = 
           components/esp_rainmaker/server_certs/rmaker_mqtt_server.crt
           components/esp_rainmaker/server_certs/rmaker_claim_service_server.crt
           components/esp_rainmaker/server_certs/rmaker_ota_server.crt
;         components/esp_insights/server_certs/mqtt_server.crt

Who is online

Users browsing this forum: No registered users and 17 guests