Compile error Mega latest
Posted: 06 Feb 2019, 11:55
Hi All,
Platform: SNOFF POW
Compiler: Ardunio 1.8.8
Source: ESPEasy_mega-20190202
OS: Widows 7.0
Im getting the following error when P076 is included in define_plugin_sets.h
This is a snippet from define_plugin_sets.h
Platform: SNOFF POW
Compiler: Ardunio 1.8.8
Source: ESPEasy_mega-20190202
OS: Widows 7.0
Im getting the following error when P076 is included in define_plugin_sets.h
Code: Select all
Arduino: 1.8.8 (Windows 7), Board: "Generic ESP8266 Module, 80 MHz, Flash, ck, 26 MHz, 40MHz, QIO, 4M (1M SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
WARNING: Category 'LED' in library CHT16K33 LED Matrix Library is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library MechInputs is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library SerialSensors is not valid. Setting to 'Uncategorized'
C:\Users\LabDesign\Documents\Laptop Docs\Island Instruments\Projects 13.02.2011\Craft R+R Products\Energy Meter EM01\FirmWare\ESPEasy_mega-20190121 - RAE\source\ESPEasy\_P076_HLW8012.ino: In function 'boolean Plugin_076(byte, EventStruct*, String&)':
_P076_HLW8012:391:32: error: 'p076_hlw8012_cf1_interrupt' was not declared in this scope
attachInterrupt(CF1_PIN, p076_hlw8012_cf1_interrupt, cf1_trigger);
^
_P076_HLW8012:392:31: error: 'p076_hlw8012_cf_interrupt' was not declared in this scope
attachInterrupt(CF_PIN, p076_hlw8012_cf_interrupt, cf_trigger);
^
Multiple libraries were found for "Servo.h"
Used: C:\Users\LabDesign\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Servo
Not used: C:\Program Files (x86)\Arduino\libraries\Servo
exit status 1
'p076_hlw8012_cf1_interrupt' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Code: Select all
#ifdef PLUGIN_SET_SONOFF_POW
#define PLUGIN_DESCR "Sonoff POW R1/R2"
#define PLUGIN_SET_ONLY_SWITCH
#define USES_P001 // Switch
#define USES_P003 // Pulse
#define USES_P020 // Ser2Net
#define USES_P026 // SysInfo
#define USES_P033 // Dummy
#define USES_P076 // HWL8012 in POW r1
// Needs CSE7766 Energy sensor, via Serial RXD 4800 baud 8E1 (GPIO1), TXD (GPIO3)
//#define USES_P077 // CSE7766 in POW R2
//#define USES_P081 // Cron
#endif