Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DbMessage ¶
type GwMetadata ¶
type GwMetadata struct { Timestamp int64 `json:"timestamp"` GtwID string `json:"gtw_id"` GtwTrusted bool `json:"gtw_trusted"` Channel int `json:"channel"` RSSI float64 `json:"rssi"` SNR float64 `json:"snr"` RFChain int `json:"rf_chain"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` Altitude float64 `json:"altitude"` }
type HandMessage ¶
type HandMessage struct {
Services []HandServ `json:"services"`
}
type MQTTCli ¶
type MQTTCli struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(conf MQTTConfig) (*MQTTCli, error)
func (*MQTTCli) GetLast7days ¶
func (*MQTTCli) WaitForData ¶
* Blocks on incoming message.
type MQTTConfig ¶
type Message ¶
type Message struct { PayloadFields *NodeEntry `json:"payload_fields"` DevID string `json:"dev_id"` AppID string `json:"app_id"` HWSerial string `json:"hardware_serial"` Port int `json:"port"` Counter int `json:"counter"` PayloadRaw string `json:"payload_raw"` Metadata *NodeMetadata `json:"metadata"` }
type NodeMetadata ¶
Click to show internal directories.
Click to hide internal directories.