| // Network string for net.Addr implementations used by the bluetooth |
| const Network = "bluetooth" |
| // ScanReading holds a single reading of a Low-Energy scan on the Bluetooth device. |
| type ScanReading struct { |
| // Name represents a local name of the remote device. It can also store |
| // arbitrary application-specific data. |
| // MAC is the hardware address of the remote device. |
| // Distance represents the (power-estimated) distance to the remote device. |
| // Time is the time the advertisement packed was received/scanned. |
| // Device is a struct representing an opened Bluetooth device. It consists of |
| // a device name, MAC address, id (e.g., 0 for hci0, 1 for hci1 etc.) and a |
| // It is not safe to invoke this type's methods concurrently from multiple |
| leScanChan chan ScanReading |