Thanks Phil!
Now, it is working.
d.
Search found 2 matches
- Wed Nov 22, 2017 11:41 pm
- Forum: MegunoLink
- Topic: using a checkbox
- Replies: 2
- Views: 9568
- Wed Nov 22, 2017 10:19 am
- Forum: MegunoLink
- Topic: using a checkbox
- Replies: 2
- Views: 9568
using a checkbox
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 ...
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 ...
