Safe Haskell | None |
---|---|
Language | Haskell2010 |
- registerAndAdvertiseApplication :: Application -> BluetoothM ApplicationRegistered
- registerApplication :: Application -> BluetoothM ApplicationRegistered
- unregisterApplication :: ApplicationRegistered -> BluetoothM ()
- addAllObjs :: Connection -> Application -> BluetoothM ()
- advertise :: WithObjectPath Advertisement -> BluetoothM ()
- unadvertise :: WithObjectPath Advertisement -> BluetoothM ()
- advertisementFor :: Application -> WithObjectPath Advertisement
- triggerNotification :: ApplicationRegistered -> CharacteristicBS -> BluetoothM ()
- bluezName :: Text
- bluezPath :: ObjectPath
Documentation
registerAndAdvertiseApplication :: Application -> BluetoothM ApplicationRegistered 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 ApplicationRegistered 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.
unadvertise :: WithObjectPath Advertisement -> BluetoothM () Source #
Unregister an adverstisement.
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.
triggerNotification :: ApplicationRegistered -> CharacteristicBS -> BluetoothM () Source #
Triggers notifications or indications.