Page 1 of 1

Does anyone have this working on PlatformIO ESP-IDF?

Posted: Fri Oct 22, 2021 5:51 am
by dfrenkel
Does anyone have this working on PlatformIO ESP-IDF? I'm not sure where to put the esp-rainmaker folder in PlatformIO

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

Posted: Sun Oct 24, 2021 6:26 pm
by dfrenkel
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

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

Posted: Mon Oct 25, 2021 4:20 am
by endlessparadigm
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.

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

Posted: Thu Oct 28, 2021 10:29 pm
by endlessparadigm
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

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

Posted: Tue Mar 22, 2022 9:03 am
by itymoneus
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

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

Posted: Wed Mar 23, 2022 3:33 pm
by brainstorm
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