Documentation ¶
Index ¶
- Variables
- type AckEvent
- func (*AckEvent) Descriptor() ([]byte, []int)
- func (m *AckEvent) GetAcknowledged() bool
- func (m *AckEvent) GetApplicationId() uint64
- func (m *AckEvent) GetApplicationName() string
- func (m *AckEvent) GetDevEui() []byte
- func (m *AckEvent) GetDeviceName() string
- func (m *AckEvent) GetFCnt() uint32
- func (m *AckEvent) GetTags() map[string]string
- func (*AckEvent) ProtoMessage()
- func (m *AckEvent) Reset()
- func (m *AckEvent) String() string
- func (m *AckEvent) XXX_DiscardUnknown()
- func (m *AckEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AckEvent) XXX_Merge(src proto.Message)
- func (m *AckEvent) XXX_Size() int
- func (m *AckEvent) XXX_Unmarshal(b []byte) error
- type ErrorEvent
- func (*ErrorEvent) Descriptor() ([]byte, []int)
- func (m *ErrorEvent) GetApplicationId() uint64
- func (m *ErrorEvent) GetApplicationName() string
- func (m *ErrorEvent) GetDevEui() []byte
- func (m *ErrorEvent) GetDeviceName() string
- func (m *ErrorEvent) GetError() string
- func (m *ErrorEvent) GetFCnt() uint32
- func (m *ErrorEvent) GetTags() map[string]string
- func (m *ErrorEvent) GetType() ErrorType
- func (*ErrorEvent) ProtoMessage()
- func (m *ErrorEvent) Reset()
- func (m *ErrorEvent) String() string
- func (m *ErrorEvent) XXX_DiscardUnknown()
- func (m *ErrorEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ErrorEvent) XXX_Merge(src proto.Message)
- func (m *ErrorEvent) XXX_Size() int
- func (m *ErrorEvent) XXX_Unmarshal(b []byte) error
- type ErrorType
- type JoinEvent
- func (*JoinEvent) Descriptor() ([]byte, []int)
- func (m *JoinEvent) GetApplicationId() uint64
- func (m *JoinEvent) GetApplicationName() string
- func (m *JoinEvent) GetDevAddr() []byte
- func (m *JoinEvent) GetDevEui() []byte
- func (m *JoinEvent) GetDeviceName() string
- func (m *JoinEvent) GetDr() uint32
- func (m *JoinEvent) GetRxInfo() []*gw.UplinkRXInfo
- func (m *JoinEvent) GetTags() map[string]string
- func (m *JoinEvent) GetTxInfo() *gw.UplinkTXInfo
- func (*JoinEvent) ProtoMessage()
- func (m *JoinEvent) Reset()
- func (m *JoinEvent) String() string
- func (m *JoinEvent) XXX_DiscardUnknown()
- func (m *JoinEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JoinEvent) XXX_Merge(src proto.Message)
- func (m *JoinEvent) XXX_Size() int
- func (m *JoinEvent) XXX_Unmarshal(b []byte) error
- type LocationEvent
- func (*LocationEvent) Descriptor() ([]byte, []int)
- func (m *LocationEvent) GetApplicationId() uint64
- func (m *LocationEvent) GetApplicationName() string
- func (m *LocationEvent) GetDevEui() []byte
- func (m *LocationEvent) GetDeviceName() string
- func (m *LocationEvent) GetLocation() *common.Location
- func (m *LocationEvent) GetTags() map[string]string
- func (m *LocationEvent) GetUplinkIds() [][]byte
- func (*LocationEvent) ProtoMessage()
- func (m *LocationEvent) Reset()
- func (m *LocationEvent) String() string
- func (m *LocationEvent) XXX_DiscardUnknown()
- func (m *LocationEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocationEvent) XXX_Merge(src proto.Message)
- func (m *LocationEvent) XXX_Size() int
- func (m *LocationEvent) XXX_Unmarshal(b []byte) error
- type StatusEvent
- func (*StatusEvent) Descriptor() ([]byte, []int)
- func (m *StatusEvent) GetApplicationId() uint64
- func (m *StatusEvent) GetApplicationName() string
- func (m *StatusEvent) GetBatteryLevel() float32
- func (m *StatusEvent) GetBatteryLevelUnavailable() bool
- func (m *StatusEvent) GetDevEui() []byte
- func (m *StatusEvent) GetDeviceName() string
- func (m *StatusEvent) GetExternalPowerSource() bool
- func (m *StatusEvent) GetMargin() uint32
- func (m *StatusEvent) GetTags() map[string]string
- func (*StatusEvent) ProtoMessage()
- func (m *StatusEvent) Reset()
- func (m *StatusEvent) String() string
- func (m *StatusEvent) XXX_DiscardUnknown()
- func (m *StatusEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StatusEvent) XXX_Merge(src proto.Message)
- func (m *StatusEvent) XXX_Size() int
- func (m *StatusEvent) XXX_Unmarshal(b []byte) error
- type TxAckEvent
- func (*TxAckEvent) Descriptor() ([]byte, []int)
- func (m *TxAckEvent) GetApplicationId() uint64
- func (m *TxAckEvent) GetApplicationName() string
- func (m *TxAckEvent) GetDevEui() []byte
- func (m *TxAckEvent) GetDeviceName() string
- func (m *TxAckEvent) GetFCnt() uint32
- func (m *TxAckEvent) GetTags() map[string]string
- func (*TxAckEvent) ProtoMessage()
- func (m *TxAckEvent) Reset()
- func (m *TxAckEvent) String() string
- func (m *TxAckEvent) XXX_DiscardUnknown()
- func (m *TxAckEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxAckEvent) XXX_Merge(src proto.Message)
- func (m *TxAckEvent) XXX_Size() int
- func (m *TxAckEvent) XXX_Unmarshal(b []byte) error
- type UplinkEvent
- func (*UplinkEvent) Descriptor() ([]byte, []int)
- func (m *UplinkEvent) GetAdr() bool
- func (m *UplinkEvent) GetApplicationId() uint64
- func (m *UplinkEvent) GetApplicationName() string
- func (m *UplinkEvent) GetData() []byte
- func (m *UplinkEvent) GetDevEui() []byte
- func (m *UplinkEvent) GetDeviceName() string
- func (m *UplinkEvent) GetDr() uint32
- func (m *UplinkEvent) GetFCnt() uint32
- func (m *UplinkEvent) GetFPort() uint32
- func (m *UplinkEvent) GetObjectJson() string
- func (m *UplinkEvent) GetRxInfo() []*gw.UplinkRXInfo
- func (m *UplinkEvent) GetTags() map[string]string
- func (m *UplinkEvent) GetTxInfo() *gw.UplinkTXInfo
- func (*UplinkEvent) ProtoMessage()
- func (m *UplinkEvent) Reset()
- func (m *UplinkEvent) String() string
- func (m *UplinkEvent) XXX_DiscardUnknown()
- func (m *UplinkEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UplinkEvent) XXX_Merge(src proto.Message)
- func (m *UplinkEvent) XXX_Size() int
- func (m *UplinkEvent) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ErrorType_name = map[int32]string{
0: "UNKNOWN",
1: "DOWNLINK_PAYLOAD_SIZE",
2: "DOWNLINK_FCNT",
3: "UPLINK_CODEC",
4: "DOWNLINK_CODEC",
5: "OTAA",
6: "UPLINK_FCNT_RESET",
7: "UPLINK_MIC",
8: "UPLINK_FCNT_RETRANSMISSION",
9: "DOWNLINK_GATEWAY",
}
var ErrorType_value = map[string]int32{
"UNKNOWN": 0,
"DOWNLINK_PAYLOAD_SIZE": 1,
"DOWNLINK_FCNT": 2,
"UPLINK_CODEC": 3,
"DOWNLINK_CODEC": 4,
"OTAA": 5,
"UPLINK_FCNT_RESET": 6,
"UPLINK_MIC": 7,
"UPLINK_FCNT_RETRANSMISSION": 8,
"DOWNLINK_GATEWAY": 9,
}
Functions ¶
This section is empty.
Types ¶
type AckEvent ¶
type AckEvent struct { // Application ID. ApplicationId uint64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"` // Application name. ApplicationName string `protobuf:"bytes,2,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"` // Device name. DeviceName string `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` // Device EUI. DevEui []byte `protobuf:"bytes,4,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"` // Frame was acknowledged. Acknowledged bool `protobuf:"varint,5,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"` // Downlink frame counter to which the acknowledgement relates. FCnt uint32 `protobuf:"varint,6,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"` // User-defined device tags. Tags map[string]string `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
AckEvent is the message sent when a confirmation on a confirmed downlink has been received -or- when the downlink timed out.
func (*AckEvent) Descriptor ¶
func (*AckEvent) GetAcknowledged ¶
func (*AckEvent) GetApplicationId ¶
func (*AckEvent) GetApplicationName ¶
func (*AckEvent) GetDeviceName ¶
func (*AckEvent) ProtoMessage ¶
func (*AckEvent) ProtoMessage()
func (*AckEvent) XXX_DiscardUnknown ¶
func (m *AckEvent) XXX_DiscardUnknown()
func (*AckEvent) XXX_Marshal ¶
func (*AckEvent) XXX_Unmarshal ¶
type ErrorEvent ¶
type ErrorEvent struct { // Application ID. ApplicationId uint64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"` // Application name. ApplicationName string `protobuf:"bytes,2,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"` // Device name. DeviceName string `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` // Device EUI. DevEui []byte `protobuf:"bytes,4,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"` // Error type. Type ErrorType `protobuf:"varint,5,opt,name=type,proto3,enum=integration.ErrorType" json:"type,omitempty"` // Error message. Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` // Downlink frame-counter (in case the downlink is related to a scheduled downlink). FCnt uint32 `protobuf:"varint,7,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"` // User-defined device tags. Tags map[string]string `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ErrorEvent is the message sent when an error occurred.
func (*ErrorEvent) Descriptor ¶
func (*ErrorEvent) Descriptor() ([]byte, []int)
func (*ErrorEvent) GetApplicationId ¶
func (m *ErrorEvent) GetApplicationId() uint64
func (*ErrorEvent) GetApplicationName ¶
func (m *ErrorEvent) GetApplicationName() string
func (*ErrorEvent) GetDevEui ¶
func (m *ErrorEvent) GetDevEui() []byte
func (*ErrorEvent) GetDeviceName ¶
func (m *ErrorEvent) GetDeviceName() string
func (*ErrorEvent) GetError ¶
func (m *ErrorEvent) GetError() string
func (*ErrorEvent) GetFCnt ¶
func (m *ErrorEvent) GetFCnt() uint32
func (*ErrorEvent) GetTags ¶
func (m *ErrorEvent) GetTags() map[string]string
func (*ErrorEvent) GetType ¶
func (m *ErrorEvent) GetType() ErrorType
func (*ErrorEvent) ProtoMessage ¶
func (*ErrorEvent) ProtoMessage()
func (*ErrorEvent) Reset ¶
func (m *ErrorEvent) Reset()
func (*ErrorEvent) String ¶
func (m *ErrorEvent) String() string
func (*ErrorEvent) XXX_DiscardUnknown ¶
func (m *ErrorEvent) XXX_DiscardUnknown()
func (*ErrorEvent) XXX_Marshal ¶
func (m *ErrorEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ErrorEvent) XXX_Merge ¶
func (m *ErrorEvent) XXX_Merge(src proto.Message)
func (*ErrorEvent) XXX_Size ¶
func (m *ErrorEvent) XXX_Size() int
func (*ErrorEvent) XXX_Unmarshal ¶
func (m *ErrorEvent) XXX_Unmarshal(b []byte) error
type ErrorType ¶
type ErrorType int32
const ( // Unknown type. ErrorType_UNKNOWN ErrorType = 0 // Error related to the downlink payload size. // Usually seen when the payload exceeded the maximum allowed payload size. ErrorType_DOWNLINK_PAYLOAD_SIZE ErrorType = 1 // Error related to the downlink frame-counter. // Usually seen when the frame-counter has already been used. ErrorType_DOWNLINK_FCNT ErrorType = 2 // Uplink codec error. ErrorType_UPLINK_CODEC ErrorType = 3 // Downlink codec error. ErrorType_DOWNLINK_CODEC ErrorType = 4 // OTAA error. ErrorType_OTAA ErrorType = 5 // Uplink frame-counter was reset. ErrorType_UPLINK_FCNT_RESET ErrorType = 6 // Uplink MIC error. ErrorType_UPLINK_MIC ErrorType = 7 // Uplink frame-counter retransmission. ErrorType_UPLINK_FCNT_RETRANSMISSION ErrorType = 8 // Downlink gateway error. ErrorType_DOWNLINK_GATEWAY ErrorType = 9 )
func (ErrorType) EnumDescriptor ¶
type JoinEvent ¶
type JoinEvent struct { // Application ID. ApplicationId uint64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"` // Application name. ApplicationName string `protobuf:"bytes,2,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"` // Device name. DeviceName string `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` // Device EUI. DevEui []byte `protobuf:"bytes,4,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"` // Device address. DevAddr []byte `protobuf:"bytes,5,opt,name=dev_addr,json=devAddr,proto3" json:"dev_addr,omitempty"` // Receiving gateway RX info. RxInfo []*gw.UplinkRXInfo `protobuf:"bytes,6,rep,name=rx_info,json=rxInfo,proto3" json:"rx_info,omitempty"` // TX info. TxInfo *gw.UplinkTXInfo `protobuf:"bytes,7,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"` // Data-rate. Dr uint32 `protobuf:"varint,8,opt,name=dr,proto3" json:"dr,omitempty"` // User-defined device tags. Tags map[string]string `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
JoinEvent is the message sent when a device joined the network. Note that this is only sent after the first received uplink after the device (re)activation.
func (*JoinEvent) Descriptor ¶
func (*JoinEvent) GetApplicationId ¶
func (*JoinEvent) GetApplicationName ¶
func (*JoinEvent) GetDevAddr ¶
func (*JoinEvent) GetDeviceName ¶
func (*JoinEvent) GetRxInfo ¶
func (m *JoinEvent) GetRxInfo() []*gw.UplinkRXInfo
func (*JoinEvent) GetTxInfo ¶
func (m *JoinEvent) GetTxInfo() *gw.UplinkTXInfo
func (*JoinEvent) ProtoMessage ¶
func (*JoinEvent) ProtoMessage()
func (*JoinEvent) XXX_DiscardUnknown ¶
func (m *JoinEvent) XXX_DiscardUnknown()
func (*JoinEvent) XXX_Marshal ¶
func (*JoinEvent) XXX_Unmarshal ¶
type LocationEvent ¶
type LocationEvent struct { // Application ID. ApplicationId uint64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"` // Application name. ApplicationName string `protobuf:"bytes,2,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"` // Device name. DeviceName string `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` // Device EUI. DevEui []byte `protobuf:"bytes,4,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"` // Location. Location *common.Location `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"` // User-defined device tags. Tags map[string]string `` /* 149-byte string literal not displayed */ // Uplink IDs used for geolocation. UplinkIds [][]byte `protobuf:"bytes,7,rep,name=uplink_ids,json=uplinkIDs,proto3" json:"uplink_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LocationEvent is the message sent when a geolocation resolve was returned.
func (*LocationEvent) Descriptor ¶
func (*LocationEvent) Descriptor() ([]byte, []int)
func (*LocationEvent) GetApplicationId ¶
func (m *LocationEvent) GetApplicationId() uint64
func (*LocationEvent) GetApplicationName ¶
func (m *LocationEvent) GetApplicationName() string
func (*LocationEvent) GetDevEui ¶
func (m *LocationEvent) GetDevEui() []byte
func (*LocationEvent) GetDeviceName ¶
func (m *LocationEvent) GetDeviceName() string
func (*LocationEvent) GetLocation ¶
func (m *LocationEvent) GetLocation() *common.Location
func (*LocationEvent) GetTags ¶
func (m *LocationEvent) GetTags() map[string]string
func (*LocationEvent) GetUplinkIds ¶
func (m *LocationEvent) GetUplinkIds() [][]byte
func (*LocationEvent) ProtoMessage ¶
func (*LocationEvent) ProtoMessage()
func (*LocationEvent) Reset ¶
func (m *LocationEvent) Reset()
func (*LocationEvent) String ¶
func (m *LocationEvent) String() string
func (*LocationEvent) XXX_DiscardUnknown ¶
func (m *LocationEvent) XXX_DiscardUnknown()
func (*LocationEvent) XXX_Marshal ¶
func (m *LocationEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LocationEvent) XXX_Merge ¶
func (m *LocationEvent) XXX_Merge(src proto.Message)
func (*LocationEvent) XXX_Size ¶
func (m *LocationEvent) XXX_Size() int
func (*LocationEvent) XXX_Unmarshal ¶
func (m *LocationEvent) XXX_Unmarshal(b []byte) error
type StatusEvent ¶
type StatusEvent struct { // Application ID. ApplicationId uint64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"` // Application name. ApplicationName string `protobuf:"bytes,2,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"` // Device name. DeviceName string `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` // Device EUI. DevEui []byte `protobuf:"bytes,4,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"` // The demodulation signal-to-noise ratio in dB for the last successfully // received device-status request by the Network Server. Margin uint32 `protobuf:"varint,5,opt,name=margin,proto3" json:"margin,omitempty"` // Device is connected to an external power source. ExternalPowerSource bool `protobuf:"varint,6,opt,name=external_power_source,json=externalPowerSource,proto3" json:"external_power_source,omitempty"` BatteryLevelUnavailable bool `` /* 133-byte string literal not displayed */ // Battery level. BatteryLevel float32 `protobuf:"fixed32,8,opt,name=battery_level,json=batteryLevel,proto3" json:"battery_level,omitempty"` // User-defined device tags. Tags map[string]string `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
StatusEvent is the message sent when a device-status mac-command was sent by the device.
func (*StatusEvent) Descriptor ¶
func (*StatusEvent) Descriptor() ([]byte, []int)
func (*StatusEvent) GetApplicationId ¶
func (m *StatusEvent) GetApplicationId() uint64
func (*StatusEvent) GetApplicationName ¶
func (m *StatusEvent) GetApplicationName() string
func (*StatusEvent) GetBatteryLevel ¶
func (m *StatusEvent) GetBatteryLevel() float32
func (*StatusEvent) GetBatteryLevelUnavailable ¶
func (m *StatusEvent) GetBatteryLevelUnavailable() bool
func (*StatusEvent) GetDevEui ¶
func (m *StatusEvent) GetDevEui() []byte
func (*StatusEvent) GetDeviceName ¶
func (m *StatusEvent) GetDeviceName() string
func (*StatusEvent) GetExternalPowerSource ¶
func (m *StatusEvent) GetExternalPowerSource() bool
func (*StatusEvent) GetMargin ¶
func (m *StatusEvent) GetMargin() uint32
func (*StatusEvent) GetTags ¶
func (m *StatusEvent) GetTags() map[string]string
func (*StatusEvent) ProtoMessage ¶
func (*StatusEvent) ProtoMessage()
func (*StatusEvent) Reset ¶
func (m *StatusEvent) Reset()
func (*StatusEvent) String ¶
func (m *StatusEvent) String() string
func (*StatusEvent) XXX_DiscardUnknown ¶
func (m *StatusEvent) XXX_DiscardUnknown()
func (*StatusEvent) XXX_Marshal ¶
func (m *StatusEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StatusEvent) XXX_Merge ¶
func (m *StatusEvent) XXX_Merge(src proto.Message)
func (*StatusEvent) XXX_Size ¶
func (m *StatusEvent) XXX_Size() int
func (*StatusEvent) XXX_Unmarshal ¶
func (m *StatusEvent) XXX_Unmarshal(b []byte) error
type TxAckEvent ¶
type TxAckEvent struct { // Application ID. ApplicationId uint64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"` // Application name. ApplicationName string `protobuf:"bytes,2,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"` // Device name. DeviceName string `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` // Device EUI. DevEui []byte `protobuf:"bytes,4,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"` // Downlink frame-counter. FCnt uint32 `protobuf:"varint,5,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"` // User-defined device tags. Tags map[string]string `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TxAckEvent is the message sent when a downlink was acknowledged by the gateway for transmission. As a downlink can be scheduled in the future, this event does not confirm that the message has already been transmitted.
func (*TxAckEvent) Descriptor ¶
func (*TxAckEvent) Descriptor() ([]byte, []int)
func (*TxAckEvent) GetApplicationId ¶
func (m *TxAckEvent) GetApplicationId() uint64
func (*TxAckEvent) GetApplicationName ¶
func (m *TxAckEvent) GetApplicationName() string
func (*TxAckEvent) GetDevEui ¶
func (m *TxAckEvent) GetDevEui() []byte
func (*TxAckEvent) GetDeviceName ¶
func (m *TxAckEvent) GetDeviceName() string
func (*TxAckEvent) GetFCnt ¶
func (m *TxAckEvent) GetFCnt() uint32
func (*TxAckEvent) GetTags ¶
func (m *TxAckEvent) GetTags() map[string]string
func (*TxAckEvent) ProtoMessage ¶
func (*TxAckEvent) ProtoMessage()
func (*TxAckEvent) Reset ¶
func (m *TxAckEvent) Reset()
func (*TxAckEvent) String ¶
func (m *TxAckEvent) String() string
func (*TxAckEvent) XXX_DiscardUnknown ¶
func (m *TxAckEvent) XXX_DiscardUnknown()
func (*TxAckEvent) XXX_Marshal ¶
func (m *TxAckEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxAckEvent) XXX_Merge ¶
func (m *TxAckEvent) XXX_Merge(src proto.Message)
func (*TxAckEvent) XXX_Size ¶
func (m *TxAckEvent) XXX_Size() int
func (*TxAckEvent) XXX_Unmarshal ¶
func (m *TxAckEvent) XXX_Unmarshal(b []byte) error
type UplinkEvent ¶
type UplinkEvent struct { // Application ID. ApplicationId uint64 `protobuf:"varint,1,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"` // Application name. ApplicationName string `protobuf:"bytes,2,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"` // Device name. DeviceName string `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` // Device EUI. DevEui []byte `protobuf:"bytes,4,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"` // Receiving gateway RX info. RxInfo []*gw.UplinkRXInfo `protobuf:"bytes,5,rep,name=rx_info,json=rxInfo,proto3" json:"rx_info,omitempty"` // TX info. TxInfo *gw.UplinkTXInfo `protobuf:"bytes,6,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"` // Device has ADR bit set. Adr bool `protobuf:"varint,7,opt,name=adr,proto3" json:"adr,omitempty"` // Data-rate. Dr uint32 `protobuf:"varint,8,opt,name=dr,proto3" json:"dr,omitempty"` // Frame counter. FCnt uint32 `protobuf:"varint,9,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"` // Frame port. FPort uint32 `protobuf:"varint,10,opt,name=f_port,json=fPort,proto3" json:"f_port,omitempty"` // FRMPayload data. Data []byte `protobuf:"bytes,11,opt,name=data,proto3" json:"data,omitempty"` // JSON string containing the decoded object. // Note that this is only set when a codec is configured in the Device Profile. ObjectJson string `protobuf:"bytes,12,opt,name=object_json,json=objectJSON,proto3" json:"object_json,omitempty"` // User-defined device tags. Tags map[string]string `` /* 150-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UplinkEvent is the message sent when an uplink payload has been received.
func (*UplinkEvent) Descriptor ¶
func (*UplinkEvent) Descriptor() ([]byte, []int)
func (*UplinkEvent) GetAdr ¶
func (m *UplinkEvent) GetAdr() bool
func (*UplinkEvent) GetApplicationId ¶
func (m *UplinkEvent) GetApplicationId() uint64
func (*UplinkEvent) GetApplicationName ¶
func (m *UplinkEvent) GetApplicationName() string
func (*UplinkEvent) GetData ¶
func (m *UplinkEvent) GetData() []byte
func (*UplinkEvent) GetDevEui ¶
func (m *UplinkEvent) GetDevEui() []byte
func (*UplinkEvent) GetDeviceName ¶
func (m *UplinkEvent) GetDeviceName() string
func (*UplinkEvent) GetDr ¶
func (m *UplinkEvent) GetDr() uint32
func (*UplinkEvent) GetFCnt ¶
func (m *UplinkEvent) GetFCnt() uint32
func (*UplinkEvent) GetFPort ¶
func (m *UplinkEvent) GetFPort() uint32
func (*UplinkEvent) GetObjectJson ¶
func (m *UplinkEvent) GetObjectJson() string
func (*UplinkEvent) GetRxInfo ¶
func (m *UplinkEvent) GetRxInfo() []*gw.UplinkRXInfo
func (*UplinkEvent) GetTags ¶
func (m *UplinkEvent) GetTags() map[string]string
func (*UplinkEvent) GetTxInfo ¶
func (m *UplinkEvent) GetTxInfo() *gw.UplinkTXInfo
func (*UplinkEvent) ProtoMessage ¶
func (*UplinkEvent) ProtoMessage()
func (*UplinkEvent) Reset ¶
func (m *UplinkEvent) Reset()
func (*UplinkEvent) String ¶
func (m *UplinkEvent) String() string
func (*UplinkEvent) XXX_DiscardUnknown ¶
func (m *UplinkEvent) XXX_DiscardUnknown()
func (*UplinkEvent) XXX_Marshal ¶
func (m *UplinkEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UplinkEvent) XXX_Merge ¶
func (m *UplinkEvent) XXX_Merge(src proto.Message)
func (*UplinkEvent) XXX_Size ¶
func (m *UplinkEvent) XXX_Size() int
func (*UplinkEvent) XXX_Unmarshal ¶
func (m *UplinkEvent) XXX_Unmarshal(b []byte) error