Open PatrikRindlisbacher opened 2 years ago
main.zip Here is a sample code simplified to the essentials.
M --> work S --> work H --> work L --> work Unrecognized command [A] Unrecognized command [G] W --> work
Freue mich über eine Reaktion des Entwicklers
It is a pity that this library is no longer maintained.
Different number of commands in the URAT instances --> unrecognized Command Every single UART instance runs error-free.
I've already invested a lot of hours to pinpoint the problem
I suspect it has something to do with the pointers. (cmd / SerialCommand) I think the cmds mix up in the different instances
The group is defined similarly for all 4 UARTs (serial_commands1 serial_commands2 serial_commands3) with partially identical, additional or missing commands.
void setup() { Serial.begin(115200); // USB serial_commands0.AddCommand(&cmdmotors); // M = Motoren serial_commands0.AddCommand(&cmdStopp); // S = Stopp serial_commands0.AddCommand(&cmdheben); // H = Heben serial_commands0.AddCommand(&cmdlicht); // L = Licht serial_commands0.AddCommand(&cmdabstand); // A = Abstand !!! serial_commands0.AddCommand(&cmddanger); // G = Gefahrenstufe !!! serial_commands0.AddCommand(&cmd_watchdogboards); // W = Watchdog Empfang
serial_commands0.SetDefaultHandler(cmd_unrecognized); // Unbekannte Befehle von UART 0 USB
Many thanks to the programmer for a job well done. `:-)```