Documentation
¶
Index ¶
Constants ¶
View Source
const ( // WsnToken is the token of wsn iot cloud WsnToken = "your_wsn_token" // WsnNumericalAPI is the api of wsn iot cloud for pushing numerical datapoints WsnNumericalAPI = "http://www.wsncloud.com/api/data/v1/numerical/insert" // WsnGenericAPI is the api of wsn iot cloud for pushing generic datapoints WsnGenericAPI = "http://www.wsncloud.com/api/data/v1/generic/insert" )
View Source
const ( // OneNetToken is the token of OneNet iot cloud OneNetToken = "your_onenet_token" // OneNetAPI is the api of OneNet iot cloud for pushing datapoints OneNetAPI = "http://api.heclouds.com/devices/540381180/datapoints" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastream ¶
Datastream ...
type OneNetCloud ¶
type OneNetCloud struct {
// contains filtered or unexported fields
}
OneNetCloud is the implement of Cloud
type OneNetConfig ¶
OneNetConfig ...
type OneNetData ¶
type OneNetData struct {
Datastreams []*Datastream `json:"datastreams"`
}
OneNetData ...
Click to show internal directories.
Click to hide internal directories.