Can't use ESP Rainmaker with VSCode & PlatformIO (Arduino framework)

mottibz
Posts: 24
Joined: Tue Jun 02, 2020 12:20 pm

Can't use ESP Rainmaker with VSCode & PlatformIO (Arduino framework)

Postby mottibz » Wed Aug 23, 2023 5:44 am

For my development on ESP32, I am using VSCode and PlatformIO with the Arduino framework.
I also installed the Arduino IDE on my machine for testing.
I tried the ESP Rainmaker Switch sample code with the Arduino IDE. It complied, loaded to my ESP32 and run with no issues.
Before that, I tried to do the same with VSCode & PlatformIO and encountered the following issues:

- The code that took about 59% Flash using the Arduino IDE, took almost 92% with VSCode (after I played with the partitions table so that enough space for the code in flash).

-Some of the functions (e.g. the included App Insignts header, RMaker.enableScenes();, initAppInsights();, and RMaker.enableSystemService(SYSTEM_SERV_FLAGS_ALL, 2, 2, 2); - where not recognized in VSCode (produced compile errors). I commented these out, compiled, and uploaded to the ESP32, but nothing happend (no output at all to the terminal and no way to provision). Looks like I am doing something wrong or there is an issue with the Arduino-ESP32 package for VSCode & PlatformIO.

Can you please help in setting Rainmaker to be successfully used with VSCode and PlatformIO?
Thanks a lot!

Who is online

Users browsing this forum: Bing [Bot] and 51 guests