go doc friendly
This commit is contained in:
parent
711804afeb
commit
cd50c251e1
@ -35,6 +35,7 @@ type Meta struct {
|
|||||||
// WiFiScans map[int]*WiFiScan
|
// WiFiScans map[int]*WiFiScan
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Instance of a BLE scan
|
||||||
type Scan struct {
|
type Scan struct {
|
||||||
Count int
|
Count int
|
||||||
ID int
|
ID int
|
||||||
@ -43,16 +44,6 @@ type Scan struct {
|
|||||||
Devices map[int]*eros.Device
|
Devices map[int]*eros.Device
|
||||||
}
|
}
|
||||||
|
|
||||||
type ManufS struct {
|
|
||||||
ManufS []ManufData `json:"manufact"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type ManufData struct {
|
|
||||||
UUID bluetooth.UUID `json: "ManufUUID"`
|
|
||||||
WhosIts string `json: "ManufString"`
|
|
||||||
MoreInfo string `json: "ManuFSite"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *Meta) NewScan() *Scan {
|
func (m *Meta) NewScan() *Scan {
|
||||||
// Here we are creating an "anonymous" instance of a Scan struct
|
// Here we are creating an "anonymous" instance of a Scan struct
|
||||||
// You'll notice it doesn't contain most of the data that actually is supposed to live within that struct
|
// You'll notice it doesn't contain most of the data that actually is supposed to live within that struct
|
||||||
|
Loading…
Reference in New Issue
Block a user