ble-0.1.0.0: Bluetooth Low Energy (BLE) peripherals

Safe HaskellNone
LanguageHaskell2010

Bluetooth.Internal.DBus

Contents

Synopsis

Documentation

registerAndAdvertiseApplication :: Application -> BluetoothM () Source

Registers an application and advertises it. If you would like to have finer-grained control of the advertisement, use registerApplication and advertise.

registerApplication :: Application -> BluetoothM () Source

Registers an application (set of services) with Bluez.

addAllObjs :: Connection -> Application -> BluetoothM () Source

Adds handlers for all the objects managed by the Application (plus the Application itself).

advertise :: WithObjectPath Advertisement -> BluetoothM () Source

Advertise a set of services.

advertisementFor :: Application -> WithObjectPath Advertisement Source

Create an advertisement for all of an application's services. The advertisement will be for peripheral (not broadcast) by default.

writeChrc :: Serialize x => WithObjectPath CharacteristicBS -> x -> BluetoothM Bool Source

Write a characteristic (if possible). Returns True if characterstic was successfully written.

Constants