Versions in this module Expand all Collapse all v1 v1.0.2 Jul 4, 2018 Changes in this version + var CodecMaxExecTime = 10 * time.Millisecond — js/wasm + type Accelerometer struct + X float64 + Y float64 + Z float64 + type CayenneLPP struct + Accelerometer map[byte]Accelerometer + AnalogInput map[byte]float64 + AnalogOutput map[byte]float64 + Barometer map[byte]float64 + DigitalInput map[byte]uint8 + DigitalOutput map[byte]uint8 + GPSLocation map[byte]GPSLocation + Gyrometer map[byte]Gyrometer + HumiditySensor map[byte]float64 + IlluminanceSensor map[byte]uint16 + PresenceSensor map[byte]uint8 + TemperatureSensor map[byte]float64 + func (c *CayenneLPP) DecodeBytes(data []byte) error + func (c CayenneLPP) EncodeToBytes() ([]byte, error) + func (c CayenneLPP) Object() interface{} + type CustomJS struct — js/wasm + Data interface{} + func NewCustomJS(fPort uint8, encodeScript, decodeScript string) *CustomJS + func (c *CustomJS) DecodeBytes(data []byte) (err error) + func (c *CustomJS) UnmarshalJSON(text []byte) error + func (c CustomJS) EncodeToBytes() (b []byte, err error) + func (c CustomJS) MarshalJSON() ([]byte, error) + func (c CustomJS) Object() interface{} + type GPSLocation struct + Altitude float64 + Latitude float64 + Longitude float64 + type Gyrometer struct + X float64 + Y float64 + Z float64 + type Payload interface + DecodeBytes func(data []byte) error + EncodeToBytes func() ([]byte, error) + Object func() interface{} + func NewPayload(t Type, fPort uint8, encodeScript, decodeScript string) Payload + type Type string + const CayenneLPPType + const CustomJSType