'SerialCommandHandler' does not name a type

Support forum for MegunoLink
Post Reply
merkelerk
Posts: 2
Joined: Sun Mar 10, 2024 2:31 am

Thu Sep 19, 2024 7:03 pm

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.
philr
Posts: 455
Joined: Mon May 26, 2014 10:58 am

Wed Oct 30, 2024 6:59 am

Hi, how did you get on with this in the end? Get it sorted? Your approach looks good to me.
Post Reply