devices/cometblue/cometblue.go
Function Dial
has 6 return statements (exceeds 4 allowed). Open
Open
func Dial(address string) (*Client, error) {
bt := GetCBContext()
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
client, err := ble.Dial(ctx, ble.NewAddr(address))
- Create a ticketCreate a ticket