Documentation
¶
Index ¶
- Constants
- Variables
- func Decode(ctx context.Context, decode DecodeFunction) error
- func DecodeApp(ctx context.Context, b []byte) error
- func DecodeData(ctx context.Context, b []byte) error
- func DecodeModuleConfig(ctx context.Context, b []byte) error
- type DeadlineReader
- type DebugReader
- type DecodeFunction
- type DeviceClient
- func (d *DeviceClient) ClearLora() (*pb.HttpReply, error)
- func (d *DeviceClient) ConfigureLoraAbp(appSessionKey, networkSessionKey, deviceAddress string, ...) (*pb.HttpReply, error)
- func (d *DeviceClient) ConfigureLoraOtaa(deviceEui, appKey, joinEui string, frequencyBand int) (*pb.HttpReply, error)
- func (d *DeviceClient) ConfigureName(name string) (*pb.HttpReply, error)
- func (d *DeviceClient) ConfigureSchedule(readings, network, gps, lora uint32) (*pb.HttpReply, error)
- func (d *DeviceClient) ConfigureTransmission(url, token string) (*pb.HttpReply, error)
- func (d *DeviceClient) ConfigureWifiNetworks(networks []*pb.NetworkInfo) (*pb.HttpReply, error)
- func (d *DeviceClient) FactoryReset() (*pb.HttpReply, error)
- func (d *DeviceClient) ModuleQuery(bay uint32, query []byte) ([]byte, error)
- func (d *DeviceClient) QueryGetReadings() (*pb.HttpReply, error)
- func (d *DeviceClient) QueryListing(path string, page uint32) (*pb.HttpReply, error)
- func (d *DeviceClient) QueryScanModules() (*pb.HttpReply, error)
- func (d *DeviceClient) QueryScanNetworks() (*pb.HttpReply, error)
- func (d *DeviceClient) QueryStartRecording() (*pb.HttpReply, error)
- func (d *DeviceClient) QueryStatus() (*pb.HttpReply, error)
- func (d *DeviceClient) QueryStopRecording() (*pb.HttpReply, error)
- func (d *DeviceClient) QueryTakeReadings() (*pb.HttpReply, error)
- type DeviceClientLoggingCallbacks
- type DeviceQueryOpts
- type LimitedReader
- type LogJsonCallbacks
- type QueryResponse
Constants ¶
View Source
const (
DefaultTimeout = 5
)
Variables ¶
View Source
var DeviceBusyErr = fmt.Errorf("Busy")
Functions ¶
Types ¶
type DeadlineReader ¶
type DebugReader ¶
type DeviceClient ¶
type DeviceClient struct {
Callbacks DeviceClientLoggingCallbacks
Address string
HexEncode bool
Port int
}
func (*DeviceClient) ConfigureLoraAbp ¶
func (*DeviceClient) ConfigureLoraOtaa ¶
func (*DeviceClient) ConfigureName ¶
func (d *DeviceClient) ConfigureName(name string) (*pb.HttpReply, error)
func (*DeviceClient) ConfigureSchedule ¶
func (d *DeviceClient) ConfigureSchedule(readings, network, gps, lora uint32) (*pb.HttpReply, error)
func (*DeviceClient) ConfigureTransmission ¶
func (d *DeviceClient) ConfigureTransmission(url, token string) (*pb.HttpReply, error)
func (*DeviceClient) ConfigureWifiNetworks ¶
func (d *DeviceClient) ConfigureWifiNetworks(networks []*pb.NetworkInfo) (*pb.HttpReply, error)
func (*DeviceClient) FactoryReset ¶
func (d *DeviceClient) FactoryReset() (*pb.HttpReply, error)
func (*DeviceClient) ModuleQuery ¶
func (d *DeviceClient) ModuleQuery(bay uint32, query []byte) ([]byte, error)
func (*DeviceClient) QueryGetReadings ¶
func (d *DeviceClient) QueryGetReadings() (*pb.HttpReply, error)
func (*DeviceClient) QueryListing ¶
func (*DeviceClient) QueryScanModules ¶
func (d *DeviceClient) QueryScanModules() (*pb.HttpReply, error)
func (*DeviceClient) QueryScanNetworks ¶
func (d *DeviceClient) QueryScanNetworks() (*pb.HttpReply, error)
func (*DeviceClient) QueryStartRecording ¶
func (d *DeviceClient) QueryStartRecording() (*pb.HttpReply, error)
func (*DeviceClient) QueryStatus ¶
func (d *DeviceClient) QueryStatus() (*pb.HttpReply, error)
func (*DeviceClient) QueryStopRecording ¶
func (d *DeviceClient) QueryStopRecording() (*pb.HttpReply, error)
func (*DeviceClient) QueryTakeReadings ¶
func (d *DeviceClient) QueryTakeReadings() (*pb.HttpReply, error)
type DeviceQueryOpts ¶
type DeviceQueryOpts struct {
// contains filtered or unexported fields
}
type LimitedReader ¶
type LogJsonCallbacks ¶
type LogJsonCallbacks struct {
Save string
}
func (*LogJsonCallbacks) Received ¶
func (cb *LogJsonCallbacks) Received(reply *pb.HttpReply)
func (*LogJsonCallbacks) Sent ¶
func (cb *LogJsonCallbacks) Sent(query *pb.HttpQuery)
type QueryResponse ¶
type QueryResponse struct {
// contains filtered or unexported fields
}
func (*QueryResponse) Close ¶
func (qr *QueryResponse) Close() error
Click to show internal directories.
Click to hide internal directories.