as

package
v0.0.0-...-58627ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeviceClass_name = map[int32]string{
	0: "ClassA",
	1: "ClassB",
	2: "ClassC",
}
View Source
var DeviceClass_value = map[string]int32{
	"ClassA": 0,
	"ClassB": 1,
	"ClassC": 2,
}
View Source
var ErrorType_name = map[int32]string{
	0: "GENERIC",
	1: "OTAA",
	2: "DATA_UP_FCNT_RESET",
	3: "DATA_UP_MIC",
	4: "DEVICE_QUEUE_ITEM_SIZE",
	5: "DEVICE_QUEUE_ITEM_FCNT",
	6: "DATA_UP_FCNT_RETRANSMISSION",
	7: "DATA_DOWN_GATEWAY",
}
View Source
var ErrorType_value = map[string]int32{
	"GENERIC":                     0,
	"OTAA":                        1,
	"DATA_UP_FCNT_RESET":          2,
	"DATA_UP_MIC":                 3,
	"DEVICE_QUEUE_ITEM_SIZE":      4,
	"DEVICE_QUEUE_ITEM_FCNT":      5,
	"DATA_UP_FCNT_RETRANSMISSION": 6,
	"DATA_DOWN_GATEWAY":           7,
}
View Source
var RXWindow_name = map[int32]string{
	0: "RX1",
	1: "RX2",
}
View Source
var RXWindow_value = map[string]int32{
	"RX1": 0,
	"RX2": 1,
}

Functions

func RegisterApplicationServerServiceServer

func RegisterApplicationServerServiceServer(s *grpc.Server, srv ApplicationServerServiceServer)

Types

type ApplicationServerServiceClient

type ApplicationServerServiceClient interface {
	// HandleUplinkData handles uplink data received from an end-device.
	HandleUplinkData(ctx context.Context, in *HandleUplinkDataRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleProprietaryUplink handles proprietary uplink payloads.
	HandleProprietaryUplink(ctx context.Context, in *HandleProprietaryUplinkRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleError handles an error message.
	HandleError(ctx context.Context, in *HandleErrorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleDownlinkACK handles a downlink ACK or nACK response.
	HandleDownlinkACK(ctx context.Context, in *HandleDownlinkACKRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleGatewayStats handles the given gateway stats.
	HandleGatewayStats(ctx context.Context, in *HandleGatewayStatsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// HandleTXACK handles the TX acknowledgement.
	HandleTxAck(ctx context.Context, in *HandleTxAckRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// SetDeviceStatus updates the device-status for a device.
	SetDeviceStatus(ctx context.Context, in *SetDeviceStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// SetDeviceLocation updates the device-location for a device.
	SetDeviceLocation(ctx context.Context, in *SetDeviceLocationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	TryAutoAddDevice(ctx context.Context, in *TryAutoAddDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SwitchDeviceClass(ctx context.Context, in *SwitchDeviceClassRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ApplicationServerServiceClient is the client API for ApplicationServerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ApplicationServerServiceServer

type ApplicationServerServiceServer interface {
	// HandleUplinkData handles uplink data received from an end-device.
	HandleUplinkData(context.Context, *HandleUplinkDataRequest) (*emptypb.Empty, error)
	// HandleProprietaryUplink handles proprietary uplink payloads.
	HandleProprietaryUplink(context.Context, *HandleProprietaryUplinkRequest) (*emptypb.Empty, error)
	// HandleError handles an error message.
	HandleError(context.Context, *HandleErrorRequest) (*emptypb.Empty, error)
	// HandleDownlinkACK handles a downlink ACK or nACK response.
	HandleDownlinkACK(context.Context, *HandleDownlinkACKRequest) (*emptypb.Empty, error)
	// HandleGatewayStats handles the given gateway stats.
	HandleGatewayStats(context.Context, *HandleGatewayStatsRequest) (*emptypb.Empty, error)
	// HandleTXACK handles the TX acknowledgement.
	HandleTxAck(context.Context, *HandleTxAckRequest) (*emptypb.Empty, error)
	// SetDeviceStatus updates the device-status for a device.
	SetDeviceStatus(context.Context, *SetDeviceStatusRequest) (*emptypb.Empty, error)
	// SetDeviceLocation updates the device-location for a device.
	SetDeviceLocation(context.Context, *SetDeviceLocationRequest) (*emptypb.Empty, error)
	TryAutoAddDevice(context.Context, *TryAutoAddDeviceRequest) (*emptypb.Empty, error)
	SwitchDeviceClass(context.Context, *SwitchDeviceClassRequest) (*emptypb.Empty, error)
}

ApplicationServerServiceServer is the server API for ApplicationServerService service.

type DeviceActivationContext

type DeviceActivationContext struct {
	// Assigned Device Address.
	DevAddr []byte `protobuf:"bytes,1,opt,name=dev_addr,json=devAddr,proto3" json:"dev_addr,omitempty"`
	// Application session key (envelope).
	AppSKey              *common.KeyEnvelope `protobuf:"bytes,2,opt,name=app_s_key,json=appSKey,proto3" json:"app_s_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*DeviceActivationContext) Descriptor

func (*DeviceActivationContext) Descriptor() ([]byte, []int)

func (*DeviceActivationContext) GetAppSKey

func (m *DeviceActivationContext) GetAppSKey() *common.KeyEnvelope

func (*DeviceActivationContext) GetDevAddr

func (m *DeviceActivationContext) GetDevAddr() []byte

func (*DeviceActivationContext) ProtoMessage

func (*DeviceActivationContext) ProtoMessage()

func (*DeviceActivationContext) Reset

func (m *DeviceActivationContext) Reset()

func (*DeviceActivationContext) String

func (m *DeviceActivationContext) String() string

func (*DeviceActivationContext) XXX_DiscardUnknown

func (m *DeviceActivationContext) XXX_DiscardUnknown()

func (*DeviceActivationContext) XXX_Marshal

func (m *DeviceActivationContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeviceActivationContext) XXX_Merge

func (m *DeviceActivationContext) XXX_Merge(src proto.Message)

func (*DeviceActivationContext) XXX_Size

func (m *DeviceActivationContext) XXX_Size() int

func (*DeviceActivationContext) XXX_Unmarshal

func (m *DeviceActivationContext) XXX_Unmarshal(b []byte) error

type DeviceClass

type DeviceClass int32
const (
	DeviceClass_ClassA DeviceClass = 0
	DeviceClass_ClassB DeviceClass = 1
	DeviceClass_ClassC DeviceClass = 2
)

func (DeviceClass) EnumDescriptor

func (DeviceClass) EnumDescriptor() ([]byte, []int)

func (DeviceClass) String

func (x DeviceClass) String() string

type ErrorType

type ErrorType int32
const (
	// Generic error type.
	ErrorType_GENERIC ErrorType = 0
	// OTAA error.
	ErrorType_OTAA ErrorType = 1
	// Uplink frame-counter was reset.
	ErrorType_DATA_UP_FCNT_RESET ErrorType = 2
	// Uplink MIC error.
	ErrorType_DATA_UP_MIC ErrorType = 3
	// Downlink payload size error.
	ErrorType_DEVICE_QUEUE_ITEM_SIZE ErrorType = 4
	// Downlink frame-counter error.
	ErrorType_DEVICE_QUEUE_ITEM_FCNT ErrorType = 5
	// Uplink frame-counter retransmission.
	ErrorType_DATA_UP_FCNT_RETRANSMISSION ErrorType = 6
	// Downlink gateway error.
	ErrorType_DATA_DOWN_GATEWAY ErrorType = 7
)

func (ErrorType) EnumDescriptor

func (ErrorType) EnumDescriptor() ([]byte, []int)

func (ErrorType) String

func (x ErrorType) String() string

type HandleDownlinkACKRequest

type HandleDownlinkACKRequest struct {
	// Device EUI (8 bytes).
	DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
	// Downlink frame-counter.
	FCnt uint32 `protobuf:"varint,2,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
	// Frame was acknowledged?
	Acknowledged         bool     `protobuf:"varint,3,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HandleDownlinkACKRequest) Descriptor

func (*HandleDownlinkACKRequest) Descriptor() ([]byte, []int)

func (*HandleDownlinkACKRequest) GetAcknowledged

func (m *HandleDownlinkACKRequest) GetAcknowledged() bool

func (*HandleDownlinkACKRequest) GetDevEui

func (m *HandleDownlinkACKRequest) GetDevEui() []byte

func (*HandleDownlinkACKRequest) GetFCnt

func (m *HandleDownlinkACKRequest) GetFCnt() uint32

func (*HandleDownlinkACKRequest) ProtoMessage

func (*HandleDownlinkACKRequest) ProtoMessage()

func (*HandleDownlinkACKRequest) Reset

func (m *HandleDownlinkACKRequest) Reset()

func (*HandleDownlinkACKRequest) String

func (m *HandleDownlinkACKRequest) String() string

func (*HandleDownlinkACKRequest) XXX_DiscardUnknown

func (m *HandleDownlinkACKRequest) XXX_DiscardUnknown()

func (*HandleDownlinkACKRequest) XXX_Marshal

func (m *HandleDownlinkACKRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleDownlinkACKRequest) XXX_Merge

func (m *HandleDownlinkACKRequest) XXX_Merge(src proto.Message)

func (*HandleDownlinkACKRequest) XXX_Size

func (m *HandleDownlinkACKRequest) XXX_Size() int

func (*HandleDownlinkACKRequest) XXX_Unmarshal

func (m *HandleDownlinkACKRequest) XXX_Unmarshal(b []byte) error

type HandleErrorRequest

type HandleErrorRequest struct {
	// Device EUI (8 bytes).
	DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
	// Type of the error.
	Type ErrorType `protobuf:"varint,3,opt,name=type,proto3,enum=as.ErrorType" json:"type,omitempty"`
	// Error string describing the error.
	Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
	// Frame-counter (if applicable) related to the error.
	FCnt                 uint32   `protobuf:"varint,5,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HandleErrorRequest) Descriptor

func (*HandleErrorRequest) Descriptor() ([]byte, []int)

func (*HandleErrorRequest) GetDevEui

func (m *HandleErrorRequest) GetDevEui() []byte

func (*HandleErrorRequest) GetError

func (m *HandleErrorRequest) GetError() string

func (*HandleErrorRequest) GetFCnt

func (m *HandleErrorRequest) GetFCnt() uint32

func (*HandleErrorRequest) GetType

func (m *HandleErrorRequest) GetType() ErrorType

func (*HandleErrorRequest) ProtoMessage

func (*HandleErrorRequest) ProtoMessage()

func (*HandleErrorRequest) Reset

func (m *HandleErrorRequest) Reset()

func (*HandleErrorRequest) String

func (m *HandleErrorRequest) String() string

func (*HandleErrorRequest) XXX_DiscardUnknown

func (m *HandleErrorRequest) XXX_DiscardUnknown()

func (*HandleErrorRequest) XXX_Marshal

func (m *HandleErrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleErrorRequest) XXX_Merge

func (m *HandleErrorRequest) XXX_Merge(src proto.Message)

func (*HandleErrorRequest) XXX_Size

func (m *HandleErrorRequest) XXX_Size() int

func (*HandleErrorRequest) XXX_Unmarshal

func (m *HandleErrorRequest) XXX_Unmarshal(b []byte) error

type HandleGatewayStatsRequest

type HandleGatewayStatsRequest struct {
	// Gateway ID (8 bytes).
	GatewayId []byte `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// Stats ID (UUID).
	StatsId []byte `protobuf:"bytes,2,opt,name=stats_id,json=statsId,proto3" json:"stats_id,omitempty"`
	// Timestamp.
	Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	// Gateway location.
	Location *common.Location `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
	// Uplink frames received.
	RxPacketsReceived uint32 `protobuf:"varint,5,opt,name=rx_packets_received,json=rxPacketsReceived,proto3" json:"rx_packets_received,omitempty"`
	// Uplink frames received OK.
	RxPacketsReceivedOk uint32 `protobuf:"varint,6,opt,name=rx_packets_received_ok,json=rxPacketsReceivedOk,proto3" json:"rx_packets_received_ok,omitempty"`
	// Downlink transmissions requested.
	TxPacketsReceived uint32 `protobuf:"varint,7,opt,name=tx_packets_received,json=txPacketsReceived,proto3" json:"tx_packets_received,omitempty"`
	// Downlink emitted.
	TxPacketsEmitted uint32 `protobuf:"varint,8,opt,name=tx_packets_emitted,json=txPacketsEmitted,proto3" json:"tx_packets_emitted,omitempty"`
	// Gateway metadata.
	Metadata             map[string]string `` /* 157-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*HandleGatewayStatsRequest) Descriptor

func (*HandleGatewayStatsRequest) Descriptor() ([]byte, []int)

func (*HandleGatewayStatsRequest) GetGatewayId

func (m *HandleGatewayStatsRequest) GetGatewayId() []byte

func (*HandleGatewayStatsRequest) GetLocation

func (m *HandleGatewayStatsRequest) GetLocation() *common.Location

func (*HandleGatewayStatsRequest) GetMetadata

func (m *HandleGatewayStatsRequest) GetMetadata() map[string]string

func (*HandleGatewayStatsRequest) GetRxPacketsReceived

func (m *HandleGatewayStatsRequest) GetRxPacketsReceived() uint32

func (*HandleGatewayStatsRequest) GetRxPacketsReceivedOk

func (m *HandleGatewayStatsRequest) GetRxPacketsReceivedOk() uint32

func (*HandleGatewayStatsRequest) GetStatsId

func (m *HandleGatewayStatsRequest) GetStatsId() []byte

func (*HandleGatewayStatsRequest) GetTime

func (*HandleGatewayStatsRequest) GetTxPacketsEmitted

func (m *HandleGatewayStatsRequest) GetTxPacketsEmitted() uint32

func (*HandleGatewayStatsRequest) GetTxPacketsReceived

func (m *HandleGatewayStatsRequest) GetTxPacketsReceived() uint32

func (*HandleGatewayStatsRequest) ProtoMessage

func (*HandleGatewayStatsRequest) ProtoMessage()

func (*HandleGatewayStatsRequest) Reset

func (m *HandleGatewayStatsRequest) Reset()

func (*HandleGatewayStatsRequest) String

func (m *HandleGatewayStatsRequest) String() string

func (*HandleGatewayStatsRequest) XXX_DiscardUnknown

func (m *HandleGatewayStatsRequest) XXX_DiscardUnknown()

func (*HandleGatewayStatsRequest) XXX_Marshal

func (m *HandleGatewayStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleGatewayStatsRequest) XXX_Merge

func (m *HandleGatewayStatsRequest) XXX_Merge(src proto.Message)

func (*HandleGatewayStatsRequest) XXX_Size

func (m *HandleGatewayStatsRequest) XXX_Size() int

func (*HandleGatewayStatsRequest) XXX_Unmarshal

func (m *HandleGatewayStatsRequest) XXX_Unmarshal(b []byte) error

type HandleProprietaryUplinkRequest

type HandleProprietaryUplinkRequest struct {
	// MACPayload of the proprietary LoRaWAN frame.
	MacPayload []byte `protobuf:"bytes,1,opt,name=mac_payload,json=macPayload,proto3" json:"mac_payload,omitempty"`
	// MIC of the proprietary LoRaWAN frame.
	Mic []byte `protobuf:"bytes,2,opt,name=mic,proto3" json:"mic,omitempty"`
	// TXInfo contains the TX related meta-data.
	TxInfo *gw.UplinkTXInfo `protobuf:"bytes,3,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"`
	// RXInfo contains the RX related meta-data.
	RxInfo               []*gw.UplinkRXInfo `protobuf:"bytes,4,rep,name=rx_info,json=rxInfo,proto3" json:"rx_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*HandleProprietaryUplinkRequest) Descriptor

func (*HandleProprietaryUplinkRequest) Descriptor() ([]byte, []int)

func (*HandleProprietaryUplinkRequest) GetMacPayload

func (m *HandleProprietaryUplinkRequest) GetMacPayload() []byte

func (*HandleProprietaryUplinkRequest) GetMic

func (m *HandleProprietaryUplinkRequest) GetMic() []byte

func (*HandleProprietaryUplinkRequest) GetRxInfo

func (*HandleProprietaryUplinkRequest) GetTxInfo

func (*HandleProprietaryUplinkRequest) ProtoMessage

func (*HandleProprietaryUplinkRequest) ProtoMessage()

func (*HandleProprietaryUplinkRequest) Reset

func (m *HandleProprietaryUplinkRequest) Reset()

func (*HandleProprietaryUplinkRequest) String

func (*HandleProprietaryUplinkRequest) XXX_DiscardUnknown

func (m *HandleProprietaryUplinkRequest) XXX_DiscardUnknown()

func (*HandleProprietaryUplinkRequest) XXX_Marshal

func (m *HandleProprietaryUplinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleProprietaryUplinkRequest) XXX_Merge

func (m *HandleProprietaryUplinkRequest) XXX_Merge(src proto.Message)

func (*HandleProprietaryUplinkRequest) XXX_Size

func (m *HandleProprietaryUplinkRequest) XXX_Size() int

func (*HandleProprietaryUplinkRequest) XXX_Unmarshal

func (m *HandleProprietaryUplinkRequest) XXX_Unmarshal(b []byte) error

type HandleTxAckRequest

type HandleTxAckRequest struct {
	// Device EUI (8 bytes).
	DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
	// Downlink frame-counter.
	FCnt                 uint32   `protobuf:"varint,2,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HandleTxAckRequest) Descriptor

func (*HandleTxAckRequest) Descriptor() ([]byte, []int)

func (*HandleTxAckRequest) GetDevEui

func (m *HandleTxAckRequest) GetDevEui() []byte

func (*HandleTxAckRequest) GetFCnt

func (m *HandleTxAckRequest) GetFCnt() uint32

func (*HandleTxAckRequest) ProtoMessage

func (*HandleTxAckRequest) ProtoMessage()

func (*HandleTxAckRequest) Reset

func (m *HandleTxAckRequest) Reset()

func (*HandleTxAckRequest) String

func (m *HandleTxAckRequest) String() string

func (*HandleTxAckRequest) XXX_DiscardUnknown

func (m *HandleTxAckRequest) XXX_DiscardUnknown()

func (*HandleTxAckRequest) XXX_Marshal

func (m *HandleTxAckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleTxAckRequest) XXX_Merge

func (m *HandleTxAckRequest) XXX_Merge(src proto.Message)

func (*HandleTxAckRequest) XXX_Size

func (m *HandleTxAckRequest) XXX_Size() int

func (*HandleTxAckRequest) XXX_Unmarshal

func (m *HandleTxAckRequest) XXX_Unmarshal(b []byte) error

type HandleUplinkDataRequest

type HandleUplinkDataRequest struct {
	// DevEUI EUI (8 bytes).
	DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
	// Join EUI used for OTAA activation (8 bytes).
	JoinEui []byte `protobuf:"bytes,2,opt,name=join_eui,json=joinEui,proto3" json:"join_eui,omitempty"`
	// Frame-counter.
	FCnt uint32 `protobuf:"varint,3,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
	// Frame port.
	FPort uint32 `protobuf:"varint,4,opt,name=f_port,json=fPort,proto3" json:"f_port,omitempty"`
	// ADR enabled.
	Adr bool `protobuf:"varint,5,opt,name=adr,proto3" json:"adr,omitempty"`
	// Data-rate.
	Dr uint32 `protobuf:"varint,6,opt,name=dr,proto3" json:"dr,omitempty"`
	// TX meta-data.
	TxInfo *gw.UplinkTXInfo `protobuf:"bytes,7,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"`
	// RX meta-data.
	RxInfo []*gw.UplinkRXInfo `protobuf:"bytes,8,rep,name=rx_info,json=rxInfo,proto3" json:"rx_info,omitempty"`
	// Received data (encrypted).
	Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"`
	// Device activation context.
	//
	// This field is only set on the first uplink frame when the security
	// context has changed (e.g. a new OTAA (re)activation).
	DeviceActivationContext *DeviceActivationContext `` /* 133-byte string literal not displayed */
	// Uplink was of type confirmed.
	ConfirmedUplink      bool     `protobuf:"varint,11,opt,name=confirmed_uplink,json=confirmedUplink,proto3" json:"confirmed_uplink,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HandleUplinkDataRequest) Descriptor

func (*HandleUplinkDataRequest) Descriptor() ([]byte, []int)

func (*HandleUplinkDataRequest) GetAdr

func (m *HandleUplinkDataRequest) GetAdr() bool
func (m *HandleUplinkDataRequest) GetConfirmedUplink() bool

func (*HandleUplinkDataRequest) GetData

func (m *HandleUplinkDataRequest) GetData() []byte

func (*HandleUplinkDataRequest) GetDevEui

func (m *HandleUplinkDataRequest) GetDevEui() []byte

func (*HandleUplinkDataRequest) GetDeviceActivationContext

func (m *HandleUplinkDataRequest) GetDeviceActivationContext() *DeviceActivationContext

func (*HandleUplinkDataRequest) GetDr

func (m *HandleUplinkDataRequest) GetDr() uint32

func (*HandleUplinkDataRequest) GetFCnt

func (m *HandleUplinkDataRequest) GetFCnt() uint32

func (*HandleUplinkDataRequest) GetFPort

func (m *HandleUplinkDataRequest) GetFPort() uint32

func (*HandleUplinkDataRequest) GetJoinEui

func (m *HandleUplinkDataRequest) GetJoinEui() []byte

func (*HandleUplinkDataRequest) GetRxInfo

func (m *HandleUplinkDataRequest) GetRxInfo() []*gw.UplinkRXInfo

func (*HandleUplinkDataRequest) GetTxInfo

func (m *HandleUplinkDataRequest) GetTxInfo() *gw.UplinkTXInfo

func (*HandleUplinkDataRequest) ProtoMessage

func (*HandleUplinkDataRequest) ProtoMessage()

func (*HandleUplinkDataRequest) Reset

func (m *HandleUplinkDataRequest) Reset()

func (*HandleUplinkDataRequest) String

func (m *HandleUplinkDataRequest) String() string

func (*HandleUplinkDataRequest) XXX_DiscardUnknown

func (m *HandleUplinkDataRequest) XXX_DiscardUnknown()

func (*HandleUplinkDataRequest) XXX_Marshal

func (m *HandleUplinkDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleUplinkDataRequest) XXX_Merge

func (m *HandleUplinkDataRequest) XXX_Merge(src proto.Message)

func (*HandleUplinkDataRequest) XXX_Size

func (m *HandleUplinkDataRequest) XXX_Size() int

func (*HandleUplinkDataRequest) XXX_Unmarshal

func (m *HandleUplinkDataRequest) XXX_Unmarshal(b []byte) error

type RXWindow

type RXWindow int32
const (
	RXWindow_RX1 RXWindow = 0
	RXWindow_RX2 RXWindow = 1
)

func (RXWindow) EnumDescriptor

func (RXWindow) EnumDescriptor() ([]byte, []int)

func (RXWindow) String

func (x RXWindow) String() string

type SetDeviceLocationRequest

type SetDeviceLocationRequest struct {
	// Device EUI (8 bytes).
	DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
	// The location of the device.
	Location *common.Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// Uplink IDs used for geolocation.
	UplinkIds            [][]byte `protobuf:"bytes,3,rep,name=uplink_ids,json=uplinkIds,proto3" json:"uplink_ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetDeviceLocationRequest) Descriptor

func (*SetDeviceLocationRequest) Descriptor() ([]byte, []int)

func (*SetDeviceLocationRequest) GetDevEui

func (m *SetDeviceLocationRequest) GetDevEui() []byte

func (*SetDeviceLocationRequest) GetLocation

func (m *SetDeviceLocationRequest) GetLocation() *common.Location

func (*SetDeviceLocationRequest) GetUplinkIds

func (m *SetDeviceLocationRequest) GetUplinkIds() [][]byte

func (*SetDeviceLocationRequest) ProtoMessage

func (*SetDeviceLocationRequest) ProtoMessage()

func (*SetDeviceLocationRequest) Reset

func (m *SetDeviceLocationRequest) Reset()

func (*SetDeviceLocationRequest) String

func (m *SetDeviceLocationRequest) String() string

func (*SetDeviceLocationRequest) XXX_DiscardUnknown

func (m *SetDeviceLocationRequest) XXX_DiscardUnknown()

func (*SetDeviceLocationRequest) XXX_Marshal

func (m *SetDeviceLocationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetDeviceLocationRequest) XXX_Merge

func (m *SetDeviceLocationRequest) XXX_Merge(src proto.Message)

func (*SetDeviceLocationRequest) XXX_Size

func (m *SetDeviceLocationRequest) XXX_Size() int

func (*SetDeviceLocationRequest) XXX_Unmarshal

func (m *SetDeviceLocationRequest) XXX_Unmarshal(b []byte) error

type SetDeviceStatusRequest

type SetDeviceStatusRequest struct {
	// Device EUI (8 bytes).
	DevEui []byte `protobuf:"bytes,1,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
	// Battery level (deprecated, use battery_level).
	// 0:      The end-device is connected to an external power source
	// 1..254: The battery level, 1 being at minimum and 254 being at maximum
	// 255:    The end-device was not able to measure the battery level
	Battery uint32 `protobuf:"varint,2,opt,name=battery,proto3" json:"battery,omitempty"`
	// The device margin status
	// -32..32: The demodulation SNR ration in dB
	Margin int32 `protobuf:"varint,3,opt,name=margin,proto3" json:"margin,omitempty"`
	// Device is connected to an external power source.
	ExternalPowerSource bool `protobuf:"varint,4,opt,name=external_power_source,json=externalPowerSource,proto3" json:"external_power_source,omitempty"`
	// Device battery status is not available.
	BatteryLevelUnavailable bool `` /* 133-byte string literal not displayed */
	// Battery level as a percentage.
	BatteryLevel         float32  `protobuf:"fixed32,6,opt,name=battery_level,json=batteryLevel,proto3" json:"battery_level,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetDeviceStatusRequest) Descriptor

func (*SetDeviceStatusRequest) Descriptor() ([]byte, []int)

func (*SetDeviceStatusRequest) GetBattery

func (m *SetDeviceStatusRequest) GetBattery() uint32

func (*SetDeviceStatusRequest) GetBatteryLevel

func (m *SetDeviceStatusRequest) GetBatteryLevel() float32

func (*SetDeviceStatusRequest) GetBatteryLevelUnavailable

func (m *SetDeviceStatusRequest) GetBatteryLevelUnavailable() bool

func (*SetDeviceStatusRequest) GetDevEui

func (m *SetDeviceStatusRequest) GetDevEui() []byte

func (*SetDeviceStatusRequest) GetExternalPowerSource

func (m *SetDeviceStatusRequest) GetExternalPowerSource() bool

func (*SetDeviceStatusRequest) GetMargin

func (m *SetDeviceStatusRequest) GetMargin() int32

func (*SetDeviceStatusRequest) ProtoMessage

func (*SetDeviceStatusRequest) ProtoMessage()

func (*SetDeviceStatusRequest) Reset

func (m *SetDeviceStatusRequest) Reset()

func (*SetDeviceStatusRequest) String

func (m *SetDeviceStatusRequest) String() string

func (*SetDeviceStatusRequest) XXX_DiscardUnknown

func (m *SetDeviceStatusRequest) XXX_DiscardUnknown()

func (*SetDeviceStatusRequest) XXX_Marshal

func (m *SetDeviceStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetDeviceStatusRequest) XXX_Merge

func (m *SetDeviceStatusRequest) XXX_Merge(src proto.Message)

func (*SetDeviceStatusRequest) XXX_Size

func (m *SetDeviceStatusRequest) XXX_Size() int

func (*SetDeviceStatusRequest) XXX_Unmarshal

func (m *SetDeviceStatusRequest) XXX_Unmarshal(b []byte) error

type SwitchDeviceClassRequest

type SwitchDeviceClassRequest struct {
	DevEUI               string      `protobuf:"bytes,1,opt,name=DevEUI,proto3" json:"DevEUI,omitempty"`
	Class                DeviceClass `protobuf:"varint,2,opt,name=Class,proto3,enum=as.DeviceClass" json:"Class,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*SwitchDeviceClassRequest) Descriptor

func (*SwitchDeviceClassRequest) Descriptor() ([]byte, []int)

func (*SwitchDeviceClassRequest) GetClass

func (m *SwitchDeviceClassRequest) GetClass() DeviceClass

func (*SwitchDeviceClassRequest) GetDevEUI

func (m *SwitchDeviceClassRequest) GetDevEUI() string

func (*SwitchDeviceClassRequest) ProtoMessage

func (*SwitchDeviceClassRequest) ProtoMessage()

func (*SwitchDeviceClassRequest) Reset

func (m *SwitchDeviceClassRequest) Reset()

func (*SwitchDeviceClassRequest) String

func (m *SwitchDeviceClassRequest) String() string

func (*SwitchDeviceClassRequest) XXX_DiscardUnknown

func (m *SwitchDeviceClassRequest) XXX_DiscardUnknown()

func (*SwitchDeviceClassRequest) XXX_Marshal

func (m *SwitchDeviceClassRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwitchDeviceClassRequest) XXX_Merge

func (m *SwitchDeviceClassRequest) XXX_Merge(src proto.Message)

func (*SwitchDeviceClassRequest) XXX_Size

func (m *SwitchDeviceClassRequest) XXX_Size() int

func (*SwitchDeviceClassRequest) XXX_Unmarshal

func (m *SwitchDeviceClassRequest) XXX_Unmarshal(b []byte) error

type TryAutoAddDeviceRequest

type TryAutoAddDeviceRequest struct {
	JoinReq              string   `protobuf:"bytes,1,opt,name=JoinReq,proto3" json:"JoinReq,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TryAutoAddDeviceRequest) Descriptor

func (*TryAutoAddDeviceRequest) Descriptor() ([]byte, []int)

func (*TryAutoAddDeviceRequest) GetJoinReq

func (m *TryAutoAddDeviceRequest) GetJoinReq() string

func (*TryAutoAddDeviceRequest) ProtoMessage

func (*TryAutoAddDeviceRequest) ProtoMessage()

func (*TryAutoAddDeviceRequest) Reset

func (m *TryAutoAddDeviceRequest) Reset()

func (*TryAutoAddDeviceRequest) String

func (m *TryAutoAddDeviceRequest) String() string

func (*TryAutoAddDeviceRequest) XXX_DiscardUnknown

func (m *TryAutoAddDeviceRequest) XXX_DiscardUnknown()

func (*TryAutoAddDeviceRequest) XXX_Marshal

func (m *TryAutoAddDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TryAutoAddDeviceRequest) XXX_Merge

func (m *TryAutoAddDeviceRequest) XXX_Merge(src proto.Message)

func (*TryAutoAddDeviceRequest) XXX_Size

func (m *TryAutoAddDeviceRequest) XXX_Size() int

func (*TryAutoAddDeviceRequest) XXX_Unmarshal

func (m *TryAutoAddDeviceRequest) XXX_Unmarshal(b []byte) error

type UnimplementedApplicationServerServiceServer

type UnimplementedApplicationServerServiceServer struct {
}

UnimplementedApplicationServerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedApplicationServerServiceServer) HandleDownlinkACK

func (*UnimplementedApplicationServerServiceServer) HandleError

func (*UnimplementedApplicationServerServiceServer) HandleGatewayStats

func (*UnimplementedApplicationServerServiceServer) HandleTxAck

func (*UnimplementedApplicationServerServiceServer) HandleUplinkData

func (*UnimplementedApplicationServerServiceServer) SetDeviceLocation

func (*UnimplementedApplicationServerServiceServer) SetDeviceStatus

func (*UnimplementedApplicationServerServiceServer) SwitchDeviceClass

func (*UnimplementedApplicationServerServiceServer) TryAutoAddDevice

Directories

Path Synopsis
external
api
Package api is a reverse proxy.
Package api is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL