Safe Haskell | None |
---|---|
Language | Haskell2010 |
- registerAndAdvertiseApplication :: Application -> BluetoothM ()
- registerApplication :: Application -> BluetoothM ()
- addAllObjs :: Connection -> Application -> BluetoothM ()
- advertise :: WithObjectPath Advertisement -> BluetoothM ()
- advertisementFor :: Application -> WithObjectPath Advertisement
- writeChrc :: Serialize x => WithObjectPath CharacteristicBS -> x -> BluetoothM Bool
- bluezName :: Text
- bluezPath :: ObjectPath
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.