mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
ble-device-info-service/protocol: document PnP ID
This explains the Pybricks-specific usage of the PnP ID fields.
This commit is contained in:
@@ -31,9 +31,13 @@ export enum PnpIdVendorIdSource {
|
||||
* Decoded data from the PnP ID characteristic.
|
||||
*/
|
||||
export type PnpId = {
|
||||
/** For Pybricks hubs, this should be PnpIdVendorIdSource.BluetoothSig */
|
||||
vendorIdSource: PnpIdVendorIdSource;
|
||||
/** For Pybricks hubs, this should be LegoCompanyId (from ble-lwp3-service/protocol). */
|
||||
vendorId: number;
|
||||
/** For Pybricks hubs, this should be one of HubType (from ble-lwp3-service/protocol). */
|
||||
productId: number;
|
||||
/** For Pybricks hubs, this should be hub variant if applicable (from ble-lwp3-service/protocol). */
|
||||
productVersion: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,6 +5,13 @@
|
||||
//
|
||||
// https://lego.github.io/lego-ble-wireless-protocol-docs/
|
||||
|
||||
/**
|
||||
* LEGO's Bluetooth SIG company identifier.
|
||||
*
|
||||
* https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers/
|
||||
*/
|
||||
export const LegoCompanyId = 0x0397;
|
||||
|
||||
/**
|
||||
* LEGO Powered Up Hub type IDs
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user