Page 1 of 1

Rainmaker development using VSCode & PlatformIO issues

Posted: Mon Aug 21, 2023 6:21 pm
by mottibz
Hello,
For my development, I am using VSCode and PlatformIO.
I also installed the Arduino IDE on my machine for testing.
I tried the Rainmaker Switch sample code with the Arduino IDE. It complied, loaded to my ESP32 and run with no issues.
I tried to do the same with VSCode & PlatformIO and encountered the following:
- Same code that took about 59% Flash using the Arduino IDE, took almost 92% with VSCode
- Some of the functions (e.g. the include of App Insignts header, RMaker.enableScenes();, initAppInsights();, and RMaker.enableSystemService(SYSTEM_SERV_FLAGS_ALL, 2, 2, 2); - where not recognized (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.
Can you please help in setting Rainmaker to be used with VSCode and PlatformIO?
Thanks a lot!