Module implementing a class to parse and store the Bluetooth device advertisement data.
ADV_DIRECT_IND |
ADV_IND |
ADV_NONCONN_IND |
ADV_SCAN_IND |
ADV_TYPE_COMPLETE_NAME |
ADV_TYPE_MANUFACTURER |
ADV_TYPE_SHORT_NAME |
ADV_TYPE_SVC_DATA |
ADV_TYPE_TX_POWER_LEVEL |
ADV_TYPE_UUID128_COMPLETE |
ADV_TYPE_UUID128_INCOMPLETE |
ADV_TYPE_UUID16_COMPLETE |
ADV_TYPE_UUID16_INCOMPLETE |
ADV_TYPE_UUID32_COMPLETE |
ADV_TYPE_UUID32_INCOMPLETE |
ManufacturerIDs |
SCAN_RSP |
ServiceIDs |
BluetoothAdvertisement | Class to parse and store the Bluetooth device advertisement data. |
_loadManufacturerIDs | Function to load the manufacturer IDs. |
_loadServiceUUIDs | Function to load the service UUIDs. |
Class to parse and store the Bluetooth device advertisement data.
None |
None |
BluetoothAdvertisement | Constructor |
__decodeField | Private method to get all fields of the specified types. |
__splitBytes | Private method to split some data into chunks of given size. |
__str__ | Special method to generate a string representation. |
address | Public method to get the address string. |
completeName | Public method to get the complete advertised name, if available. |
manufacturer | Public method to get the manufacturer data. |
name | Public method to get the complete or shortened advertised name, if available. |
rssi | Public method to get the RSSI value. |
services | Public method to get the service IDs. |
shortName | Public method to get the shortened advertised name, if available. |
txPower | Public method to get the advertised power level in dBm. |
update | Public method to update the advertisement data. |
None |
Constructor
Private method to get all fields of the specified types.
Private method to split some data into chunks of given size.
Special method to generate a string representation.
Public method to get the address string.
Public method to get the complete advertised name, if available.
Public method to get the manufacturer data.
Public method to get the complete or shortened advertised name, if available.
Public method to get the RSSI value.
Public method to get the service IDs.
Public method to get the shortened advertised name, if available.
Public method to get the advertised power level in dBm.
Public method to update the advertisement data.
Function to load the manufacturer IDs.
Function to load the service UUIDs.