Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type LineBeacon ¶
type LineBeacon struct {
// contains filtered or unexported fields
}
func (*LineBeacon) AddField ¶
func (l *LineBeacon) AddField(header byte, data []byte) *LineBeacon
type LineBeaconGATT ¶
type LineBeaconGATT struct {
//Output frame data for line beacon
OutFrame []byte
//Tx power is the received power at 0 meters, in dBm, and the value ranges from -100 dBm to +20 dBm to a resolution of 1 dBm.
//
//Note to developers:
// The best way to determine the precise value to put into this field is to measure the actual output of
// your beacon from 1 meter away and then add 41dBm to that. 41dBm is the signal loss that occurs over 1 meter.
PowerLevel int
}
func NewLineBeacon ¶
func NewLineBeacon(hwid []byte, data []byte) *LineBeaconGATT
func (*LineBeaconGATT) Advertise ¶
func (lb *LineBeaconGATT) Advertise()
Start to Advertise your beacon, it is block API.
Click to show internal directories.
Click to hide internal directories.