func SetServices(svcs []*Service) error {
	if defaultDevice == nil {
		return ErrDefaultDevice
	}
	return defaultDevice.SetServices(svcs)
}
SetServices set the specified service to the database.
It removes all currently added services, if any.
package ble
import (
	"context"
	"os"
	"os/signal"
	"syscall"
	"github.com/pkg/errors"
)
var ErrDefaultDevice = errors.New("default device is not set")
var defaultDevice Device
func SetDefaultDevice(d Device) {
	defaultDevice = d
}
func AddService(svc *Service) error {
	if defaultDevice == nil {
		return ErrDefaultDevice
	}
	return defaultDevice.AddService(svc)
}
func RemoveAllServices() error {
	if defaultDevice == nil {
		return ErrDefaultDevice
	}
	return defaultDevice.RemoveAllServices()
}