- This topic has 1 reply, 2 voices, and was last updated 1 year, 7 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › Library for ABB (ex PowerOne) Aurora Inverter for Arduino, esp32 and esp8266 › Xiao ESP32C3 Compile Error (could not convert ‘&Serial’ from ‘HWCDC*’ to ‘HardwareSerial*’)
Hi,
Thanks for this library, I’ve had it working on a Nano and Nano IOT but when I try with a Xiao ESP32C3 it won’t compile, I get the following error:
Aurora.h:97:63: error: could not convert ‘& Serial’ from ‘HWCDC*’ to ‘HardwareSerial*’
Aurora(byte inverterAddress, HardwareSerial* serial = &Serial, byte serialCommunicationControlPin = SERIAL_COMMUNICATION_CONTROL_PIN);
From the ino:
#include “Arduino.h”
#include <Aurora.h>
//#include <SoftwareSerial.h>
//#include <MemoryFree.h>
//SoftwareSerial mySerial(10, 11); // RX, TX
Aurora inverter = Aurora(2, &Serial1, 5);
//Aurora inverter = Aurora(2, 10, 11, 5);
Any ideas how to resolve?
Thanks,
Hi Traff,
you must disable the
USB CDC On Boot
parameter on the IDE.
Comment also the SoftwareSerial option on the library.
Bye Renzo
More