platypush.backend.bluetooth.fileserver

class platypush.backend.bluetooth.fileserver.BluetoothFileserverBackend(*args: Any, **kwargs: Any)[source]

Bluetooth OBEX file server. Enable it to allow bluetooth devices to browse files on this machine.

If you run platypush as a non-root user (and you should) then you to change the group owner of the service discovery protocol file (/var/run/sdp) and add your user to that group. See here for details.

Requires:

  • pybluez (pip install pybluez)

  • pyobex (pip install git+https://github.com/BlackLight/PyOBEX)

__init__(port: int, address: str = '', directory: str = '/home/blacklight', whitelisted_addresses: Optional[list] = None, **kwargs)[source]
Parameters
  • port – Bluetooth listen port

  • address – Bluetooth address to bind the server to (default: any)

  • directory – Directory to share (default: HOME directory)

  • whitelisted_addresses – If set then only accept connections from the listed device addresses