BlueHeron.Peripheral (blue_heron v0.4.0) View Source

Handles management of advertising and GATT server

Link to this section Summary

Link to this section Functions

Link to this function

advertising(arg1, arg2, data)

View Source
Link to this function

connected(arg1, pkg, data)

View Source
Link to this function

exchange_mtu(pid, server_mtu)

View Source

Specs

exchange_mtu(GenServer.server(), non_neg_integer()) :: :ok
Link to this function

nofify(pid, service_id, chararistic_id, data)

View Source

Specs

Send a HandleValueNotification packet

  • pid - the peripheral pid
  • service_id - the id used in the peripheral profile
  • chararistic_id - the id of the characistic on the service
  • data - binary data for the notification
Link to this function

set_advertising_data(pid, data)

View Source
Link to this function

set_advertising_parameters(pid, params)

View Source
Link to this function

start_link(context, gatt_server)

View Source

Start a non-secured peripheral

Link to this function

start_link(context, gatt_server, smp_handler)

View Source

Start a SMP enabled peripheral. smp_handler should be a module that implements the SMP.IOHandler behavior

Link to this function

wait_working(arg1, arg2, data)

View Source