Versions in this module Expand all Collapse all v0 v0.0.1 Jul 7, 2023 Changes in this version + var ErrNoLocation = errors.New("no location returned") + type AntennaLocation struct + Altitude float64 + Latitude float64 + Longitude float64 + type BSSID [6]byte + func (b *BSSID) UnmarshalText(text []byte) error + func (b BSSID) MarshalText() ([]byte, error) + type Client struct + func New(migrated bool, uri string, token string) *Client + func (c *Client) GNSSLR1110SingleFrame(ctx context.Context, rxInfo []*gw.UplinkRXInfo, useRxTime bool, pl []byte) (common.Location, error) + func (c *Client) RSSIMultiFrame(ctx context.Context, rxInfo [][]*gw.UplinkRXInfo) (common.Location, error) + func (c *Client) RSSISingleFrame(ctx context.Context, rxInfo []*gw.UplinkRXInfo) (common.Location, error) + func (c *Client) TDOAMultiFrame(ctx context.Context, rxInfo [][]*gw.UplinkRXInfo) (common.Location, error) + func (c *Client) TDOASingleFrame(ctx context.Context, rxInfo []*gw.UplinkRXInfo) (common.Location, error) + func (c *Client) WifiTDOASingleFrame(ctx context.Context, rxInfo []*gw.UplinkRXInfo, aps []WifiAccessPoint) (common.Location, error) + type GNSSLR1110SingleFrameRequest struct + GNSSAssistAltitude *float64 + GNSSAssistPosition []float64 + GNSSCaptureTime *float64 + GNSSCaptureTimeAccuracy *float64 + GNSSUse2DSolver bool + Payload helpers.HEXBytes + func NewGNSSLR1110SingleFrameRequest(rxInfo []*gw.UplinkRXInfo, useRxTime bool, pl []byte) GNSSLR1110SingleFrameRequest + type LocationResult struct + Accuracy int + AlgorithmType string + Altitude float64 + Latitude float64 + Longitude float64 + NumberOfGatewaysReceived int + NumberOfGatewaysUsed int + type LocationSolverResult struct + Accuracy float64 + CaptureTimeGPS float64 + CaptureTimeUTC float64 + ECEF []float64 + GDOP float64 + LLH []float64 + type RSSIMultiFrameRequest struct + LoRaWAN [][]UplinkRSSI + func NewRSSIMultiFrameRequest(rxInfo [][]*gw.UplinkRXInfo) RSSIMultiFrameRequest + type RSSISingleFrameRequest struct + LoRaWAN []UplinkRSSI + func NewRSSISingleFrameRequest(rxInfo []*gw.UplinkRXInfo) RSSISingleFrameRequest + type Response struct + Errors []string + Result *LocationResult + Warnings []string + type TDOAMultiFrameRequest struct + LoRaWAN [][]UplinkTDOA + func NewTDOAMultiFrameRequest(rxInfo [][]*gw.UplinkRXInfo) TDOAMultiFrameRequest + type TDOASingleFrameRequest struct + LoRaWAN []UplinkTDOA + func NewTDOASingleFrameRequest(rxInfo []*gw.UplinkRXInfo) TDOASingleFrameRequest + type UplinkRSSI struct + AntennaID int + AntennaLocation AntennaLocation + GatewayID lorawan.EUI64 + RSSI float64 + SNR float64 + func NewUplinkRSSI(rxInfo []*gw.UplinkRXInfo) []UplinkRSSI + type UplinkTDOA struct + AntennaID int + AntennaLocation AntennaLocation + GatewayID lorawan.EUI64 + RSSI float64 + SNR float64 + TOA uint32 + func NewUplinkTDOA(rxInfo []*gw.UplinkRXInfo) []UplinkTDOA + type V3Response struct + Errors []string + Result *LocationSolverResult + Warnings []string + type WifiAccessPoint struct + MacAddress BSSID + SignalStrength int + type WifiTDOASingleFrameRequest struct + LoRaWAN []UplinkTDOA + WifiAccessPoints []WifiAccessPoint + func NewWifiTDOASingleFrameRequest(rxInfo []*gw.UplinkRXInfo, aps []WifiAccessPoint) WifiTDOASingleFrameRequest