Page 1 of 1

'SerialCommandHandler' does not name a type

Posted: Thu Sep 19, 2024 7:03 pm
by merkelerk
I used the library sample "Turn LED Off and ON without issue. I had no problem modifying it to perform a couple of more specific tasks but when I tried integrating this into my actual project I run into a compile error.

Compilation error: 'SerialCommandHandler' does not name a type

The only changes I made compared to the library example was to re-name the command(s). In the breadboard testing I did using my modified version of the library example, I used the same names that I tried in my main project.
Here are the two Serial commands I'm using, this is where the compiler error points...
SerialCommandHandler.AddCommand(F("ReadSD"), Cmd_ReadSD);
SerialCommandHandler.AddCommand(F("WriteSD"), Cmd_WriteSD);

I have tried placing these prior to Void Setup, in the Void Setup section and in the Void Loop section, no luck.

Any advice would be appreciated.

Re: 'SerialCommandHandler' does not name a type

Posted: Wed Oct 30, 2024 6:59 am
by philr
Hi, how did you get on with this in the end? Get it sorted? Your approach looks good to me.

Re: 'SerialCommandHandler' does not name a type

Posted: Mon Jan 13, 2025 1:54 pm
by merkelerk
I never did get this sorted out and ended up installing actual hardware push buttons to handle the tasks.
I would still love to get the radio buttons on the interface panel to work.

Re: 'SerialCommandHandler' does not name a type

Posted: Tue Jan 28, 2025 6:21 am
by philr
Can you please share your program with me and ill take a look.