ble-sensors/lib/bluetooth/description.go
2020-08-08 19:00:41 -05:00

14 lines
284 B
Go

package bluetooth
import (
"fmt"
"github.com/currantlabs/ble"
"github.com/spf13/viper"
)
// GetDescription returns a description given a Bluetooth address
func GetDescription(address ble.Addr) string {
return viper.GetString(fmt.Sprintf("bluetooth.%s.description", address))
}