bluetooth

class platypush.backend.bluetooth.BluetoothBackend(*args: Any, **kwargs: Any)[source]
__init__(address: str = '', port: Optional[int] = None, directory: Optional[str] = None, whitelisted_addresses=None, **kwargs)[source]
Parameters
  • bus – Reference to the bus object to be used in the backend

  • poll_seconds – If the backend implements a loop method, this parameter expresses how often the loop should run in seconds.

  • kwargs – Key-value configuration for the backend

run()[source]

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.

stop()[source]

Stops the backend thread by sending a STOP event on its bus