Arduino not compiling RainMaker switch example

claudea2
Posts: 7
Joined: Tue Apr 06, 2021 8:42 pm

Arduino not compiling RainMaker switch example

Postby claudea2 » Wed Oct 20, 2021 3:56 pm

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
Attachments
Verbose errors.txt
(344.6 KiB) Downloaded 294 times

ESP_Piyush
Posts: 259
Joined: Wed Feb 20, 2019 7:02 am

Re: Arduino not compiling RainMaker switch example

Postby ESP_Piyush » Thu Oct 21, 2021 7:39 am

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.

claudea2
Posts: 7
Joined: Tue Apr 06, 2021 8:42 pm

Re: Arduino not compiling RainMaker switch example

Postby claudea2 » Fri Oct 22, 2021 2:40 pm

Thanks

kelemvor
Posts: 1
Joined: Mon Apr 18, 2022 3:40 pm

Re: Arduino not compiling RainMaker switch example

Postby kelemvor » Mon Apr 18, 2022 3:45 pm

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.

Who is online

Users browsing this forum: No registered users and 36 guests