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
Arduino not compiling RainMaker switch example
Arduino not compiling RainMaker switch example
- Attachments
-
- Verbose errors.txt
- (344.6 KiB) Downloaded 380 times
-
- Posts: 309
- Joined: Wed Feb 20, 2019 7:02 am
Re: Arduino not compiling RainMaker switch example
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
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.
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 61 guests