integration

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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",
}
View Source
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) Descriptor() ([]byte, []int)

func (*AckEvent) GetAcknowledged

func (m *AckEvent) GetAcknowledged() bool

func (*AckEvent) GetApplicationId

func (m *AckEvent) GetApplicationId() uint64

func (*AckEvent) GetApplicationName

func (m *AckEvent) GetApplicationName() string

func (*AckEvent) GetDevEui

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

func (*AckEvent) GetDeviceName

func (m *AckEvent) GetDeviceName() string

func (*AckEvent) GetFCnt

func (m *AckEvent) GetFCnt() uint32

func (*AckEvent) GetTags

func (m *AckEvent) GetTags() map[string]string

func (*AckEvent) ProtoMessage

func (*AckEvent) ProtoMessage()

func (*AckEvent) Reset

func (m *AckEvent) Reset()

func (*AckEvent) String

func (m *AckEvent) String() string

func (*AckEvent) XXX_DiscardUnknown

func (m *AckEvent) XXX_DiscardUnknown()

func (*AckEvent) XXX_Marshal

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

func (*AckEvent) XXX_Merge

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

func (*AckEvent) XXX_Size

func (m *AckEvent) XXX_Size() int

func (*AckEvent) XXX_Unmarshal

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

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

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

func (ErrorType) String

func (x ErrorType) String() string

type IntegrationEvent

type IntegrationEvent 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"`
	// User-defined device tags.
	Tags map[string]string `` /* 149-byte string literal not displayed */
	// Integration name.
	IntegrationName string `protobuf:"bytes,6,opt,name=integration_name,json=integrationName,proto3" json:"integration_name,omitempty"`
	// Event type.
	EventType string `protobuf:"bytes,7,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
	// JSON string containing the event object.
	ObjectJson           string   `protobuf:"bytes,8,opt,name=object_json,json=objectJSON,proto3" json:"object_json,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IntegrationEvent is the message that can be sent by an integration. It allows for sending events which are provided by an external integration which are "not native" to ChirpStack.

func (*IntegrationEvent) Descriptor

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

func (*IntegrationEvent) GetApplicationId

func (m *IntegrationEvent) GetApplicationId() uint64

func (*IntegrationEvent) GetApplicationName

func (m *IntegrationEvent) GetApplicationName() string

func (*IntegrationEvent) GetDevEui

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

func (*IntegrationEvent) GetDeviceName

func (m *IntegrationEvent) GetDeviceName() string

func (*IntegrationEvent) GetEventType

func (m *IntegrationEvent) GetEventType() string

func (*IntegrationEvent) GetIntegrationName

func (m *IntegrationEvent) GetIntegrationName() string

func (*IntegrationEvent) GetObjectJson

func (m *IntegrationEvent) GetObjectJson() string

func (*IntegrationEvent) GetTags

func (m *IntegrationEvent) GetTags() map[string]string

func (*IntegrationEvent) ProtoMessage

func (*IntegrationEvent) ProtoMessage()

func (*IntegrationEvent) Reset

func (m *IntegrationEvent) Reset()

func (*IntegrationEvent) String

func (m *IntegrationEvent) String() string

func (*IntegrationEvent) XXX_DiscardUnknown

func (m *IntegrationEvent) XXX_DiscardUnknown()

func (*IntegrationEvent) XXX_Marshal

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

func (*IntegrationEvent) XXX_Merge

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

func (*IntegrationEvent) XXX_Size

func (m *IntegrationEvent) XXX_Size() int

func (*IntegrationEvent) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*JoinEvent) GetApplicationId

func (m *JoinEvent) GetApplicationId() uint64

func (*JoinEvent) GetApplicationName

func (m *JoinEvent) GetApplicationName() string

func (*JoinEvent) GetDevAddr

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

func (*JoinEvent) GetDevEui

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

func (*JoinEvent) GetDeviceName

func (m *JoinEvent) GetDeviceName() string

func (*JoinEvent) GetDr

func (m *JoinEvent) GetDr() uint32

func (*JoinEvent) GetRxInfo

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

func (*JoinEvent) GetTags

func (m *JoinEvent) GetTags() map[string]string

func (*JoinEvent) GetTxInfo

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

func (*JoinEvent) ProtoMessage

func (*JoinEvent) ProtoMessage()

func (*JoinEvent) Reset

func (m *JoinEvent) Reset()

func (*JoinEvent) String

func (m *JoinEvent) String() string

func (*JoinEvent) XXX_DiscardUnknown

func (m *JoinEvent) XXX_DiscardUnknown()

func (*JoinEvent) XXX_Marshal

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

func (*JoinEvent) XXX_Merge

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

func (*JoinEvent) XXX_Size

func (m *JoinEvent) XXX_Size() int

func (*JoinEvent) XXX_Unmarshal

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

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.
	// This is set in case the geolocation is based on the uplink meta-data.
	UplinkIds [][]byte `protobuf:"bytes,7,rep,name=uplink_ids,json=uplinkIDs,proto3" json:"uplink_ids,omitempty"`
	// Frame counter (in case the geolocation is based on the payload).
	// This is set in case the geolocation is based on the uplink payload content.
	FCnt                 uint32   `protobuf:"varint,8,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,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) GetFCnt

func (m *LocationEvent) GetFCnt() uint32

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 int32 `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"`
	// Battery level is not available.
	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() int32

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 */
	// Uplink was of type confirmed.
	ConfirmedUplink bool `protobuf:"varint,14,opt,name=confirmed_uplink,json=confirmedUplink,proto3" json:"confirmed_uplink,omitempty"`
	// Device address.
	DevAddr              []byte   `protobuf:"bytes,15,opt,name=dev_addr,json=devAddr,proto3" json:"dev_addr,omitempty"`
	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 (m *UplinkEvent) GetConfirmedUplink() bool

func (*UplinkEvent) GetData

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

func (*UplinkEvent) GetDevAddr

func (m *UplinkEvent) GetDevAddr() []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

Jump to

Keyboard shortcuts

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