Skip to content

Configurable transactionTimeout in XBee public API #1412

Open
@darrencocco

Description

@darrencocco

Having a request timeout issue with GetChannel on the Xbee module. Using it in OpenHab. Would like a method to configure it.

It would be appreciated if there was a publicly exposed API for setting the com.zsmartsystems.zigbee.dongle.xbee.internal.XbeeFrameHandler#transactionTimeout
in ZigBeeDongleXbee so that we can then make that an advanced configurable item in OpenHab.

I have considered just manually setting the com.zsmartsystems.zigbee.dongle.xbee.internal.XbeeFrameHandler#DEFAULT_TRANSACTION_TIMEOUT to something less aggressive (currently 500).

I've confirmed that this is the problem by manually setting the transactionTimeout to 2000 (probably much larger than needed) with the Java remote debugger.

Happy to write the code myself and send it as a pull request. If you're happy with that then some rough guidelines on how it should be look would be appreciated (otherwise I will just poke around the other implementations for inspiration).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions