types

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: GPL-3.0 Imports: 1 Imported by: 7

README

types

Drone (cloud) GoDoc

Introduction

DRY is a good engineering principle. Here we define common I1820 data types.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Raw       []byte      `json:"raw" bson:"raw"`             // data before decode
	Data      interface{} `json:"data" bson:"data"`           // data after decode
	Timestamp time.Time   `json:"timestamp" bson:"timestamp"` // when data received in uplink
	ThingID   string      `json:"thing_id" bson:"thingid"`    // deveui

	RxInfo interface{} `json:"rx_info" bson:"rxinfo"`
	TxInfo interface{} `json:"tx_info" bson:"txinfo"`

	Project  string `json:"project" bson:"project"`   // thing project identification
	Protocol string `json:"protocol" bson:"protocol"` // uplink protocol
	Model    string `json:"model" bson:"model"`       // way of decode
}

Data represents nodes data after parse phase that is done by protocols. Each data have its raw and decoded payload and may have link quality information. This structure is created and remains in the platform for each incoming data.

Jump to

Keyboard shortcuts

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