MeshCommandHandler
In mid to late 2026, I started migrating my nodes over to MeshCore from Meshtastic, largely due to network congestion and general reliability of messaging. Of course, that meant completely re-writing my python code that handles commands received over the mesh.
I got really tired of re-creating the same boilerplate code. Command handlers that connect to the mesh interfaces, logic, whitelisting admins, etc. It all just got tedious. So I took the basic code from the meshtastic listener and broke it out into it's own new repo, the MeshCommandHandler.
The idea is simple; setup a new mesh radio monitoring service that feeds direct messages into the handler. The handler runs checks on the received input and decides if it should reply or ignore. Why direct messages only? Because replying "pong" to every test message is just saturating the mesh and hurting our channel usage. Plus direct messages rely more on direct routing that the more traditional flood routing.
Right now, it only replies with a few simple commands. Service info, help, the basics. It also has other commands such as waypoints and CLI commands.
The CLI commands bit is interesting because of a specific issue I had. I needed a way to enable or disable the ad-hoc hotspot on the MeshDeck remotely without internet access. With this new script that I'm working on, I could define an alias and a terminal command that toggles that service on and off.
Right now, we're on version 0.2.2, but I plan to add more as time goes on. I plan to update this page as I add more features and just my general tinkering with the repo, for as long as that hyper-fixation lasts.