Skip to content

Commit

Permalink
Add Known Properties to MarioHub
Browse files Browse the repository at this point in the history
- HardwareNetworkId is not accepted by MarioHub

#91 non-breaking
  • Loading branch information
tthiery committed Oct 24, 2020
1 parent 73b3fc6 commit 42928d1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/SharpBrick.PoweredUp/Hubs/MarioHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,23 @@ public MarioHub(ILegoWirelessProtocol protocol, IDeviceFactory deviceFactory, IL
new Port(2, string.Empty, false, expectedDevice: DeviceType.MarioHubPants),
new Port(3, string.Empty, false, expectedDevice: DeviceType.MarioHubDebug),
new Port(6, string.Empty, false, expectedDevice: DeviceType.Voltage),
},
knownProperties: new HubProperty[] {
HubProperty.AdvertisingName,
HubProperty.Button,
HubProperty.FwVersion,
HubProperty.HwVersion,
HubProperty.Rssi,
HubProperty.BatteryVoltage,
HubProperty.BatteryType,
HubProperty.ManufacturerName,
HubProperty.RadioFirmwareVersion,
HubProperty.LegoWirelessProtocolVersion,
HubProperty.SystemTypeId,
// HubProperty.HardwareNetworkId, // Throws command not recognized error for MarioHub
HubProperty.PrimaryMacAddress,
HubProperty.SecondaryMacAddress,
//HubProperty.HardwareNetworkFamily, // may throw command not recognized error for MarioHub
})
{ }

Expand Down

0 comments on commit 42928d1

Please sign in to comment.