Khaalidi / HLW8032

A lightweight library for the HLW8032 SOP8 high precision energy metering IC
MIT License
50 stars 16 forks source link

Facing problem with library #11

Open SwapB5632 opened 1 year ago

SwapB5632 commented 1 year ago

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(); ^