2020-08-08 19:00:41 -05:00
|
|
|
package bluetooth
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2020-08-09 07:23:47 -05:00
|
|
|
"github.com/go-ble/ble"
|
2020-08-08 19:00:41 -05:00
|
|
|
"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))
|
|
|
|
}
|