update code with latest muka/go-bluetooth ,add go mod

This commit is contained in:
cuu
2021-10-01 21:57:21 +08:00
parent a481890304
commit 8db027c60f
8 changed files with 267 additions and 254 deletions

View File

@@ -3,9 +3,9 @@ package Bluetooth
import (
//"fmt"
bleapi "github.com/muka/go-bluetooth/api"
"github.com/muka/go-bluetooth/bluez/profile"
//"github.com/muka/go-bluetooth/emitter"
//bleapi "github.com/muka/go-bluetooth/api"
//"github.com/muka/go-bluetooth/bluez/profile"
"github.com/muka/go-bluetooth/bluez/profile/device"
"github.com/veandco/go-sdl2/ttf"
"github.com/veandco/go-sdl2/sdl"
@@ -83,8 +83,8 @@ type NetItem struct {
MacAddr string //
Parent *BluetoothPage
Path string ///org/bluez/hci0/dev_34_88_5D_97_FF_26
Props *profile.Device1Properties
Device *bleapi.Device
Props *device.Device1Properties
Device *device.Device1
}