I have my ongoing project with library 0.4.10. I have come across this error now when writing some new code. I have many similar pieces of code but this is what fails:
BLYNK_WRITE(V26) {
int value = param.asInt();
}
but this works:
BLYNK_WRITE(V36) {
int value = param.asInt();
}
I picked the V36 at random (and some others as well to test) to continue with the rest of the project. Any ideas what could be wrong?
---------------------I get the following error messages:
In file included from N:\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:19:0,
from N:\Arduino\libraries\Blynk\src/BlynkApiArduino.h:14,
from N:\Arduino\libraries\Blynk\src/Adapters/BlynkEthernet.h:18,
from N:\Arduino\libraries\Blynk\src/BlynkSimpleEthernet.h:20,
from N:\Arduino\HomeAutomationV1.1\HomeAutomationV1.1.ino:87:
N:\Arduino\HomeAutomationV1.1\Lighting.ino: In function 'void BlynkWidgetWrite26(BlynkReq&, const BlynkParam&)':
N:\Arduino\libraries\Blynk\src/Blynk/BlynkHandlers.h:152:10: error: redefinition of 'void BlynkWidgetWrite26(BlynkReq&, const BlynkParam&)'
void BlynkWidgetWrite ## pin (BlynkReq BLYNK_UNUSED &request, const BlynkParam BLYNK_UNUSED ¶m)
^
N:\Arduino\libraries\Blynk\src/Blynk/BlynkHandlers.h:160:31: note: in expansion of macro 'BLYNK_WRITE_2'
#define BLYNK_WRITE(pin) BLYNK_WRITE_2(pin)
^
N:\Arduino\HomeAutomationV1.1\Lighting.ino:182:1: note: in expansion of macro 'BLYNK_WRITE'
BLYNK_WRITE(V26)
^
N:\Arduino\libraries\Blynk\src/Blynk/BlynkHandlers.h:152:10: note: 'void BlynkWidgetWrite26(BlynkReq&, const BlynkParam&)' previously defined here
void BlynkWidgetWrite ## pin (BlynkReq BLYNK_UNUSED &request, const BlynkParam BLYNK_UNUSED ¶m)
^
N:\Arduino\libraries\Blynk\src/Blynk/BlynkHandlers.h:160:31: note: in expansion of macro 'BLYNK_WRITE_2'
#define BLYNK_WRITE(pin) BLYNK_WRITE_2(pin)
^
N:\Arduino\HomeAutomationV1.1\HomeAutomationV1.1.ino:146:1: note: in expansion of macro 'BLYNK_WRITE'
BLYNK_WRITE(V26) {
^