homebridge-plugins / homebridge-roomba2

Homebridge plugin to connect iRobot Roomba devices with Homebridge/HomeKit.
MIT License
145 stars 17 forks source link

Reuse Dorita980 Roomba instances #66

Closed karlvr closed 3 years ago

karlvr commented 3 years ago

If we keep a Dorita980 instance open, the app is apparently not able to communicate with Roomba. It suggests Roomba supports one connection at a time. Therefore we should reuse an existing connection, if possible, when trying to concurrently talk to Roomba.

Implement reference counting.

rcoletti116 commented 3 years ago

Perhaps semantics, but worth clarifying, the robot can only support one local connection at a time. If Dorita980 is connected the app does falls back to cloud connection.

karlvr commented 3 years ago

@rcoletti116 thank you. Right, and we don't have such a fallback mechanism, so I think reusing will be important if we have a situation where we are querying status and starting a clean at the same time.