src.device-manager.python.WeaveBluezMgr module

Summary

Contents

class src.device-manager.python.WeaveBluezMgr.BluezDbusAdapter(bluez_obj, bluez, bus, logger=None)
Address
DiscoverableTimeout(timeoutSec)
Discovering
Powered(enable)
SetDiscoveryFilter(dict)
UUIDs
adapter_bg_scan(enable)
adapter_on_prop_changed_cb(interface, changed_properties, invalidated_properties)
adapter_register_signal()
adapter_unregister_signal()
clear_adapter()
destroy()
find_devices(uuids)
class src.device-manager.python.WeaveBluezMgr.BluezDbusDevice(bluez_obj, bluez, bus, logger=None)
Adapter
Address
Connected
Name
RSSI
ServiceData
ServicesResolved
TxPower
destroy()
device_bg_connect(enable)
device_on_prop_changed_cb(interface, changed_properties, invalidated_properties)
device_register_signal()
device_unregister_signal()
service_discover(gatt_dic)
uuids
class src.device-manager.python.WeaveBluezMgr.BluezDbusGattCharacteristic(bluez_obj, bluez, bus, logger=None)
Notifying
StartNotify(cbfunct, reply_handler, error_handler, timeout)
StopNotify(reply_handler, error_handler, timeout)
WriteValue(value, options, reply_handler, error_handler, timeout)
destroy()
gattCharacteristic_register_signal()
gattCharacteristic_unregister_signal()
gatt_on_characteristic_changed_cb(interface, changed_properties, invalidated_properties)
uuid
class src.device-manager.python.WeaveBluezMgr.BluezDbusGattService(bluez_obj, bluez, bus, logger=None)
Device
Primary
destroy()
find_characteristic(uuid)
uuid
class src.device-manager.python.WeaveBluezMgr.BluezManager(devMgr, logger=None)

Bases: src.device-manager.python.WeaveBleBase.WeaveBleBase

CloseBle(connObj)

Called by Weave to close the BLE connection.

GetBleEvent()

Called by WeaveDeviceMgr.py on behalf of Weave to retrieve a queued message.

SubscribeBleCharacteristic(connObj, svcId, charId, subscribe)
WriteBleCharacteristic(connObj, svcId, charId, buffer, length)
WriteCharactertisticErrorCB(*args)
WriteCharactertisticSuccessCB(*args)
ble_adapter_print()
ble_adapter_select(identifier=None)
ble_debug_log(line)
connect(identifier)
connect_bg_implementation(**kwargs)
devMgrCB()
disconnect()
disconnect_bg_implementation(**kwargs)
dump_scan_result(device)
get_adapter_by_addr(identifier)
readlineCB()
receivedNotificationCB(data)
runIdleLoop(**kwargs)
runLoopUntil(target=None, **kwargs)
running_thread(target, kwargs)
scan(line)
scan_bg_implementation(**kwargs)
scan_connect(line)

API to perform both scan and connect operations in one call.

setInputHook(hookFunc)

Set the PyOS_InputHook to call the specific function.

stop_thread(userData)
subscribeErrorCb(*args)
subscribeSuccessCb(*args)
unsubscribeErrorCb(*args)
unsubscribeSuccessCb(*args)
weaveServieCharConnect()
src.device-manager.python.WeaveBluezMgr.get_bluez_objects(bluez, bus, interface, prefix_path)