BlueHeron.Peripheral (blue_heron v0.4.0) View Source
Handles management of advertising and GATT server
Link to this section Summary
Functions
Send a HandleValueNotification packet
Start a non-secured peripheral
Start a SMP enabled peripheral. smp_handler
should be a module that implements the SMP.IOHandler
behavior
Link to this section Functions
Specs
exchange_mtu(GenServer.server(), non_neg_integer()) :: :ok
Specs
nofify( GenServer.server(), BlueHeron.GATT.Service.id(), BlueHeron.GATT.Characteristic.id(), binary() ) :: :ok | {:error, term()}
Send a HandleValueNotification packet
pid
- the peripheral pidservice_id
- the id used in the peripheral profilechararistic_id
- the id of the characistic on the servicedata
- binary data for the notification
Start a non-secured peripheral
Start a SMP enabled peripheral. smp_handler
should be a module that implements the SMP.IOHandler
behavior