Versions in this module Expand all Collapse all v0 v0.0.2 Mar 5, 2020 v0.0.1 May 13, 2019 Changes in this version + type Client struct + func NewClient(conn ble.Conn) (*Client, error) + func (p *Client) Addr() ble.Addr + func (p *Client) CancelConnection() error + func (p *Client) ClearSubscriptions() error + func (p *Client) Conn() ble.Conn + func (p *Client) Disconnected() <-chan struct{} + func (p *Client) DiscoverCharacteristics(filter []ble.UUID, s *ble.Service) ([]*ble.Characteristic, error) + func (p *Client) DiscoverDescriptors(filter []ble.UUID, c *ble.Characteristic) ([]*ble.Descriptor, error) + func (p *Client) DiscoverIncludedServices(ss []ble.UUID, s *ble.Service) ([]*ble.Service, error) + func (p *Client) DiscoverProfile(force bool) (*ble.Profile, error) + func (p *Client) DiscoverServices(filter []ble.UUID) ([]*ble.Service, error) + func (p *Client) ExchangeMTU(mtu int) (int, error) + func (p *Client) HandleNotification(req []byte) + func (p *Client) Name() string + func (p *Client) Profile() *ble.Profile + func (p *Client) ReadCharacteristic(c *ble.Characteristic) ([]byte, error) + func (p *Client) ReadDescriptor(d *ble.Descriptor) ([]byte, error) + func (p *Client) ReadLongCharacteristic(c *ble.Characteristic) ([]byte, error) + func (p *Client) ReadRSSI() int + func (p *Client) Subscribe(c *ble.Characteristic, ind bool, h ble.NotificationHandler) error + func (p *Client) Unsubscribe(c *ble.Characteristic, ind bool) error + func (p *Client) WriteCharacteristic(c *ble.Characteristic, v []byte, noRsp bool) error + func (p *Client) WriteDescriptor(d *ble.Descriptor, v []byte) error + type Server struct + func NewServer() (*Server, error) + func NewServerWithName(name string) (*Server, error) + func NewServerWithNameAndHandler(name string, notifyHandler ble.NotifyHandler) (*Server, error) + func (s *Server) AddService(svc *ble.Service) error + func (s *Server) DB() *att.DB + func (s *Server) RemoveAllServices() error + func (s *Server) SetServices(svcs []*ble.Service) error