bluetooth
Platypush documentation
bluetooth
- class platypush.message.response.bluetooth.BluetoothDiscoverCharacteristicsResponse(characteristics: list, *args, **kwargs)[source]
Bases:
BluetoothResponse
Example services response output:
[ { "uuid": "00002a00-0000-1000-8000-00805f9b34fb", "handle": 2, "properties": 10, "value_handle": 3 }, { "uuid": "00002a01-0000-1000-8000-00805f9b34fb", "handle": 4, "properties": 2, "value_handle": 5 }, { "uuid": "00002a04-0000-1000-8000-00805f9b34fb", "handle": 6, "properties": 2, "value_handle": 7 }, { "uuid": "0000fec8-0000-1000-8000-00805f9b34fb", "handle": 10, "properties": 32, "value_handle": 11 }, { "uuid": "0000fec7-0000-1000-8000-00805f9b34fb", "handle": 13, "properties": 8, "value_handle": 14 }, { "uuid": "0000fec9-0000-1000-8000-00805f9b34fb", "handle": 15, "properties": 2, "value_handle": 16 }, { "uuid": "cba20003-224d-11e6-9fb8-0002a5d5c51b", "handle": 18, "properties": 16, "value_handle": 19 }, { "uuid": "cba20002-224d-11e6-9fb8-0002a5d5c51b", "handle": 21, "properties": 12, "value_handle": 22 } ]
- class platypush.message.response.bluetooth.BluetoothDiscoverPrimaryResponse(services: list, *args, **kwargs)[source]
Bases:
BluetoothResponse
Example services response output:
[ { "uuid": "00001800-0000-1000-8000-00805f9b34fb", "start": 1, "end": 7 }, { "uuid": "00001801-0000-1000-8000-00805f9b34fb", "start": 8, "end": 8 }, { "uuid": "0000fee7-0000-1000-8000-00805f9b34fb", "start": 9, "end": 16 }, { "uuid": "cba20d00-224d-11e6-9fb8-0002a5d5c51b", "start": 17, "end": 65535 } ]
- class platypush.message.response.bluetooth.BluetoothLookupNameResponse(addr: str, name: str, *args, **kwargs)[source]
Bases:
BluetoothResponse
- class platypush.message.response.bluetooth.BluetoothLookupServiceResponse(services: list, *args, **kwargs)[source]
Bases:
BluetoothResponse
Example services response output:
[ { "service-classes": [ "1801" ], "profiles": [], "name": "Service name #1", "description": null, "provider": null, "service-id": null, "protocol": "L2CAP", "port": 31, "host": "00:11:22:33:44:55" }, { "service-classes": [ "1800" ], "profiles": [], "name": "Service name #2", "description": null, "provider": null, "service-id": null, "protocol": "L2CAP", "port": 31, "host": "00:11:22:33:44:56" }, { "service-classes": [ "1112", "1203" ], "profiles": [ [ "1108", 258 ] ], "name": "Headset Gateway", "description": null, "provider": null, "service-id": null, "protocol": "RFCOMM", "port": 2, "host": "00:11:22:33:44:57" } ]
- class platypush.message.response.bluetooth.BluetoothResponse(target=None, origin=None, id=None, output=None, errors=None, timestamp=None, logging_level=20)[source]
Bases:
Response
- class platypush.message.response.bluetooth.BluetoothScanResponse(devices, *args, **kwargs)[source]
Bases:
BluetoothResponse