module

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceData

type DeviceData struct {
	Application string                 `json:"application,omitempty"`
	Device      string                 `json:"device,omitempty"`
	Properties  map[string]interface{} `json:"properties,omitempty"`
	Geo         GeoData                `json:"location"`
}

DeviceData 应用层数据结构

type DownLinkRx added in v0.3.0

type DownLinkRx struct {
	AppID    string `json:"app_id,omitempty"`
	DeviceID string `json:"device_id,omitempty"`
	Data     []byte `json:"data,omitempty"`
}

type GeoData

type GeoData struct {
	Lat float64 `json:"latitude,omitempty"`
	Lng float64 `json:"longitude,omitempty"`
}

type LinkMessageRx added in v0.3.0

type LinkMessageRx struct {
	AppID      string                 `json:"appId,omitempty"`      // App(应用)ID
	DeviceID   string                 `json:"deviceId,omitempty"`   // 设备ID(数据库编号,外部系统或open api里不展示)
	DeviceSn   string                 `json:"deviceSn,omitempty"`   // 设备SN(序列号)
	DeviceCode string                 `json:"deviceCode,omitempty"` // 设备Code(通信编号-通信识别号)
	DeviceName string                 `json:"deviceName,omitempty"` // 名称
	Time       int64                  `json:"time,omitempty"`
	Raw        []byte                 `json:"raw,omitempty"`
	Data       map[string]interface{} `json:"data,omitempty"`
}

LinkMessageRx 平台结构

type Location added in v0.3.0

type Location struct {
	Lat float64 `json:"latitude,omitempty"`
	Lon float64 `json:"longitude,omitempty"`
}

type LoraWANRx added in v0.3.0

type LoraWANRx struct {
	ApplicationID string                 `json:"applicationID,omitempty"`
	DeviceEUI     string                 `json:"devEUI,omitempty"`
	Raw           string                 `json:"data,omitempty"`
	Channel       int                    `json:"fPort,omitempty"`
	RxInfo        []RxInfo               `json:"rxInfo,omitempty"`
	Data          map[string]interface{} `json:"objectJSON,omitempty"`
}

type NetworkData

type NetworkData struct {
	ApplicationId int         `json:"application_id,omitempty"` // 平台应用ID
	DeviceId      int         `json:"device_id,omitempty"`      // 平台设备ID
	Payload       interface{} `json:"payload,omitempty"`        // 数据载体
}

NetworkData 网络层数据结构,由各个network bridge收集,提交到上层解析

type NetworkRx added in v0.3.0

type NetworkRx struct {
	NetworkId string                `json:"networkId,omitempty"`
	EventType nwconnector.EventType `json:"eventType,omitempty"`
	Host      string                `json:"host,omitempty"`
	Port      int                   `json:"port,omitempty"`
	Username  string                `json:"username,omitempty"`
	Password  string                `json:"password,omitempty"`
	ClientId  string                `json:"clientId,omitempty"`
	Ssl       bool                  `json:"ssl"`
}

type OpenDeviceData added in v0.4.0

type OpenDeviceData struct {
	DeviceID   string                 `json:"deviceId,omitempty"`   // 设备ID
	DeviceCode string                 `json:"deviceCode,omitempty"` // 设备Code(唯一编号)
	DeviceName string                 `json:"deviceName,omitempty"` // 名称
	Time       int64                  `json:"time,omitempty"`
	Data       map[string]interface{} `json:"data,omitempty"`
}

OpenDeviceData 开放数据:设备消息

type OpenShadowData added in v0.4.0

type OpenShadowData struct {
	ThingID   string                 `json:"thingId,omitempty"`   // App(应用)ID
	ThingCode string                 `json:"thingCode,omitempty"` // Code(唯一编码)
	ThingName string                 `json:"thingName,omitempty"` // 名称
	Time      int64                  `json:"time,omitempty"`
	Data      map[string]interface{} `json:"data,omitempty"`
}

OpenShadowData 开放数据:物消息

type RxInfo added in v0.3.0

type RxInfo struct {
	GatewayID string   `json:"gatewayID,omitempty"`
	Location  Location `json:"location,omitempty"`
}

Jump to

Keyboard shortcuts

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