Moderators: grovkillen, Stuntteam, TD-er
-
beic
- Normal user
- Posts: 142
- Joined: 18 Aug 2016, 18:19
#1
Post
by beic » 16 Apr 2017, 00:04
Hi there,
I'm trying to compile Event plugin from ESPEasyPluginPlayground
https://github.com/dzikus/ESPEasyPlugin ... _Event.ino
But, I got an compile error saying:
Code: Select all
_P103_Event.ino: In function 'void Plugin_103_Action(byte, byte, int, int, byte)':
_P103_Event:522: error: invalid conversion from 'char*' to 'byte {aka unsigned char}' [-fpermissive]
ExecuteCommand(command);
^
_P103_Event:522: error: too few arguments to function 'void ExecuteCommand(byte, const char*)'
Command.ino:2:6: note: declared here
void ExecuteCommand(byte source, const char *Line)
^
I'm using Arduino IDE v1.8.2 and ESPEasy R148.
Kind regards,
Viktor
-
Martinus
#2
Post
by Martinus » 18 Apr 2017, 20:42
I doubt if the event plugin has any use since we have rules engine now. But to make it compatible with a later ESP Easy framework, you could patch line 522 in the plugin file:
change this
ExecuteCommand(command);
into
ExecuteCommand(0,command);
should be safe...
-
beic
- Normal user
- Posts: 142
- Joined: 18 Aug 2016, 18:19
#3
Post
by beic » 18 Apr 2017, 22:11
Martinus wrote: ↑18 Apr 2017, 20:42
I doubt if the event plugin has any use since we have rules engine now. But to make it compatible with a later ESP Easy framework, you could patch line 522 in the plugin file:
change this
ExecuteCommand(command);
into
ExecuteCommand(0,command);
should be safe...
Hey Martinus,
Long time no see!
Your suggestion is working (compiled without any error), did not tested the functionality yet.
Thank you for your help!
Kind regards,
Viktor
p.s. I stick with R147_RC8 it's easier and cleaner for me!

Who is online
Users browsing this forum: No registered users and 27 guests