You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method to create a RevHub should auto-open the serial port and query all known interfaces
Should accept serialNumber, parentAddress as parameters (children are added by calling a separate method)
Will find correct serial port for the serial number, open it, and start keepalives and query interfaces for all children
Returns singular RevHub object with children field populated
Closing parent RevHub closes all children and serial port
Closing any RevHub stops keepalives
Closing child RevHub removes from parent
Method to do discovery on a given serial number
Method to do discovery on all connected Expansion Hubs
ParentRevHub#addChildByAddress(int address): RevHub (also adds to children array)
RevHub#discoverChildren(): RevHub[] (replaces children object contents)
Must NOT replace existing RevHub instances who were also found in discovery
Takes an options object as a parameter with a removeDisconnectedChildren field
Not sure of how RHSPLib handles this, but changing a hub's address needs to auto-update all the appropriate fields, ensure keepalives keep working, and check for conflicts (both via discovery and via assumed toplogy) before sending the address change command
The text was updated successfully, but these errors were encountered:
I updated this issue description with checkboxes, updated some things, and checked off completed items. Discovery is still a big place that this library is lacking. When we add better discovery support, the sample needs to be updated to make specifying a parent address optional.
isParent
fieldRevHub
closes all children and serial portRevHub
stops keepalivesRevHub
removes from parentParentRevHub#addChildByAddress(int address): RevHub
(also adds tochildren
array)RevHub#discoverChildren(): RevHub[]
(replaceschildren
object contents)RevHub
instances who were also found in discoveryremoveDisconnectedChildren
fieldThe text was updated successfully, but these errors were encountered: