Skip to content

implement an api.probe() method #21

@Adminiuga

Description

@Adminiuga

Whenever you have a chance, could you implement something similar to zigpy/zigpy-deconz#101 ?

Essentially I'd like to be able to run await zigpy_zigate.api.ZiGate.probe(serial_port_path, baudrate) and get either a True if radio was detected or False otherwise. Method should swallow all exceptions.
Currently for deconz or EZSP it justs opens the port, issues some command to which it always should get a response and closes the port.

Not sure if anything similar is possible with zigate. Maybe issuing set_raw_command() and if successful then consider the radio is there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions