Page 1 of 1

Arduino not compiling RainMaker switch example

Posted: Wed Oct 20, 2021 3:56 pm
by claudea2
Hello,
I am trying to get the Arduino RainMaker switch example running on my ESP32-C3 devkitC-02.
I can compile it if I choose the ESP dev module board but not if I choose the ESPC3 dev module board.

Arduino 1.8.16, https://raw.githubusercontent.com/espre ... index.json additional boards manager

Linux Mint 20.2 Cinnamon

errors: multiple: (see attached file for verbose details)
Arduino: 1.8.16 (Linux), Board: "ESP32C3 Dev Module, Disabled, UART0, No OTA (2MB APP/2MB SPIFFS), 160MHz (WiFi), QIO, 80MHz, 4MB (32Mb), 921600, None" RMakerSwitch:18:8: error: 'Switch' does not name a type static Switch my\_switch("Switch", &gpio\_switch); ^~~~~~ RMakerSwitch:35:21: error: variable or field 'write\_callback' declared void void write\_callback(Device \*device, Param \*param, const param\_val\_t val, void \*priv\_data, write\_ctx_t \*ctx) ^~~~~~ RMakerSwitch:35:21: error: 'Device' was not declared in this scope

Note, I can compile and download my code (PWM outputs on 3 pins) successfully.

thanks for your help.
Claude

Re: Arduino not compiling RainMaker switch example

Posted: Thu Oct 21, 2021 7:39 am
by ESP_Piyush
The ESP RainMaker libraries in Arduino only support ESP32 for the time being. We will update here once support for other platforms is made available.

Re: Arduino not compiling RainMaker switch example

Posted: Fri Oct 22, 2021 2:40 pm
by claudea2
Thanks

Re: Arduino not compiling RainMaker switch example

Posted: Mon Apr 18, 2022 3:45 pm
by kelemvor
I have the same problem with an ESP32-S2, although since the example sketch doesn't compile the target device seems kind of irrelevant.

RMakerSwitch:18:8: error: 'Switch' does not name a type
static Switch my_switch("Switch", &gpio_switch);


Since I've been using this board for other projects successfully, I just loaded up the example sketch included with the IDE and got the error on first compile attempt.