kj831ca / KasaSmartPlug

Arduino Library for TP Link KASA Smart Plug
MIT License
12 stars 5 forks source link

'TAG' was not declared in this scope #4

Open risoul opened 1 year ago

risoul commented 1 year ago

Hi, thanks for that usefull code! I got this error when compiling on vscode with platformio. src/KasaSmartPlug.cpp:54:18: error: 'TAG' was not declared in this scope

qwazwsx commented 7 months ago

add this line to the top of the file

#define TAG "KasaSmartPlug"

This library uses the ESP32 log library which uses a tag (an string) to identify which "module" logs are coming from.