Skip to content

Repeater has no equivalent to SensorMesh's handleCustomCommand (PR?) #2967

Description

@HeyVern

SensorMesh (examples/simple_sensor) has a handleCustomCommand() hook that lets downstream apps add their own admin commands without having to touch handleCommand() directly. The repeater's MyMesh doesn't have anything like this - if you want a repeater-side command right now... you have to fork handleCommand() and keep it in sync by hand when something changes upstream.

Would a small PR adding the the same hook to simple_repeater's MyMesh be welcome? Same signature as SensorMesh's version, called right before the fallback to _cli.handleCommand() so it can't shadow any existing verbs...default implementation just returns 'false' so nothing changes for anyone not using it.

Happy to open the PR if this sounds reasonable - figured I'd check first since it touches MyMesh.h.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions