-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
Milestone
Description
- See what the smart people at Dynamic modes nathankellenicki/node-poweredup#97 are doing
- Analyze Port (Mode) Information what constraints to apply => nothing useful
Use Cases
- Implement fallback device for unknown devices (flag)
- Implement fallback for known but not implemented devices (flag)
- Use
DynamicDevice.Discoverin caseGetStaticPortInformationdoes not have any information for typed device (aka. soft react to firmware updates).
Strategy
- Create a sub class
DynamicDevicewhich derives fromDevice - Add a discovery function as
DynamicDevice.DiscoverAsync. Decision needed whether we auto-call it when discovered byHubAttachedIOMessageor by user before usage by user (since pretty expensive). - Add
ConcurrentDictionary<byte,Mode> ModestoDevicewhich is auto populated on Discovery (or on auto-playing knowledge into the device) ... so for existing devies these are auto-populated. - Add default observables, properties (SI, Raw, Pct) and WriteDirectMode method to
Mode - Rewrite existing invocations to target
Mode.
Should be non-breaking at the API surface.