I have installed library in Arduino. Using the example in this library I'm getting this error
In file included from c:\Users\swapnilb\Documents\Arduino\libraries\HLW8032-master/HLW8032.h:11:0,
from C:\Users\swapnilb\AppData\Local\Temp\.arduinoIDE-unsaved202349-13516-z1tcoc.xf1h\ESP8266_ESP8285_Example\ESP8266_ESP8285_Example.ino:5:
c:\Users\swapnilb\Documents\Arduino\libraries\EspSoftwareSerial\src/SoftwareSerial.h:370:39: error: use of deleted function 'std::atomic::atomic(const std::atomic&)'
std::atomic m_isrOverflow = false;
^
In file included from c:\Users\swapnilb\Documents\Arduino\libraries\EspSoftwareSerial\src/circular_queue/circular_queue.h:28:0,
from c:\Users\swapnilb\Documents\Arduino\libraries\EspSoftwareSerial\src/SoftwareSerial.h:25,
from c:\Users\swapnilb\Documents\Arduino\libraries\HLW8032-master/HLW8032.h:11,
from C:\Users\swapnilb\AppData\Local\Temp.arduinoIDE-unsaved202349-13516-z1tcoc.xf1h\ESP8266_ESP8285_Example\ESP8266_ESP8285_Example.ino:5:
c:\users\swapnilb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\atomic:66:5: note: declared here
atomic(const atomic&) = delete;
^
c:\users\swapnilb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\atomic:70:15: note: after user-defined conversion: constexpr std::atomic::atomic(bool)
constexpr atomic(bool i) noexcept : _M_base(i) { }
^
C:\Users\swapnilb\AppData\Local\Temp.arduinoIDE-unsaved202349-13516-z1tcoc.xf1h\ESP8266_ESP8285_Example\ESP8266_ESP8285_Example.ino: In function 'void setup()':
C:\Users\swapnilb\AppData\Local\Temp.arduinoIDE-unsaved202349-13516-z1tcoc.xf1h\ESP8266_ESP8285_Example\ESP8266_ESP8285_Example.ino:13:12: error: 'class HardwareSerial' has no member named 'swap'
Serial.swap();
^
I have installed library in Arduino. Using the example in this library I'm getting this error
c:\Users\swapnilb\Documents\Arduino\libraries\EspSoftwareSerial\src/SoftwareSerial.h:370:39: error: use of deleted function 'std::atomic::atomic(const std::atomic&)'
std::atomic m_isrOverflow = false;
^
In file included from c:\Users\swapnilb\Documents\Arduino\libraries\EspSoftwareSerial\src/circular_queue/circular_queue.h:28:0,
from c:\Users\swapnilb\Documents\Arduino\libraries\EspSoftwareSerial\src/SoftwareSerial.h:25,
from c:\Users\swapnilb\Documents\Arduino\libraries\HLW8032-master/HLW8032.h:11,
from C:\Users\swapnilb\AppData\Local\Temp.arduinoIDE-unsaved202349-13516-z1tcoc.xf1h\ESP8266_ESP8285_Example\ESP8266_ESP8285_Example.ino:5:
c:\users\swapnilb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\atomic:66:5: note: declared here
atomic(const atomic&) = delete;
^
c:\users\swapnilb\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\atomic:70:15: note: after user-defined conversion: constexpr std::atomic::atomic(bool)
constexpr atomic(bool i) noexcept : _M_base(i) { }
^
C:\Users\swapnilb\AppData\Local\Temp.arduinoIDE-unsaved202349-13516-z1tcoc.xf1h\ESP8266_ESP8285_Example\ESP8266_ESP8285_Example.ino: In function 'void setup()':
C:\Users\swapnilb\AppData\Local\Temp.arduinoIDE-unsaved202349-13516-z1tcoc.xf1h\ESP8266_ESP8285_Example\ESP8266_ESP8285_Example.ino:13:12: error: 'class HardwareSerial' has no member named 'swap'
Serial.swap();
^