Arduino not compiling RainMaker switch example
Posted: 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
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