Versions in this module Expand all Collapse all v0 v0.1.0 Aug 23, 2021 Changes in this version + type Device struct + HCI *hci.HCI + Server *gatt.Server + func NewDevice(opts ...ble.Option) (*Device, error) + func NewDeviceWithName(name string, opts ...ble.Option) (*Device, error) + func NewDeviceWithNameAndHandler(name string, handler ble.NotifyHandler, opts ...ble.Option) (*Device, error) + func (d *Device) AddService(svc *ble.Service) error + func (d *Device) Address() ble.Addr + func (d *Device) Advertise(ctx context.Context, adv ble.Advertisement) error + func (d *Device) AdvertiseIBeacon(ctx context.Context, u ble.UUID, major, minor uint16, pwr int8) error + func (d *Device) AdvertiseIBeaconData(ctx context.Context, b []byte) error + func (d *Device) AdvertiseMfgData(ctx context.Context, id uint16, b []byte) error + func (d *Device) AdvertiseNameAndServices(ctx context.Context, name string, uuids ...ble.UUID) error + func (d *Device) AdvertiseServiceData16(ctx context.Context, id uint16, b []byte) error + func (d *Device) Dial(ctx context.Context, a ble.Addr) (ble.Client, error) + func (d *Device) RemoveAllServices() error + func (d *Device) Scan(ctx context.Context, allowDup bool, h ble.AdvHandler) error + func (d *Device) SetServices(svcs []*ble.Service) error + func (d *Device) Stop() error