using a checkbox
Posted: Wed Nov 22, 2017 10:19 am
Hi,
I am trying to used a checkbox which is set to send a command like this. "!my_checkbox [my_checkbox.Checked]\r\n"
In my arduino code I have the following line in the setup.
SerialCommandHandler.AddVariable(F("my_checkbox"), checked);
My question is what data type I should use for the variable 'checked'.
I tried boolean, but it gave me a compiling error.
d.
I am trying to used a checkbox which is set to send a command like this. "!my_checkbox [my_checkbox.Checked]\r\n"
In my arduino code I have the following line in the setup.
SerialCommandHandler.AddVariable(F("my_checkbox"), checked);
My question is what data type I should use for the variable 'checked'.
I tried boolean, but it gave me a compiling error.
d.