- Create new device in namespace
SharpBrick.PoweredUpand foldersrc/SharpBrick.PoweredUp/Devices - Derive from
Device - Create empty constructor (for non-interactive purposes) and
ctr(ILegoWirelessProtocol protocol, byte hubId, byte portId)(for interactive connected purposes) - Dervice from interface
IPoweredUpDevice - Execute
poweredup device dump-static-port -p <port number>to retrieve static port information. - Add dump to method
IPoweredUpDevice.GetStaticPortInfoMessages(this method improves startup performance since protocol knowledge can be initialized without lenthly querying the actual devices) - Wire up observable for input events
- Wire up known commands messages.
- Add to DeviceFactory