Documentation ¶
Index ¶
- type Decoder
- func (d *Decoder) Accelerometer(channel uint8, x, y, z float32)
- func (d *Decoder) AnalogInput(channel uint8, value float32)
- func (d *Decoder) AnalogOutput(channel uint8, value float32)
- func (d *Decoder) BarometricPressure(channel uint8, hpa float32)
- func (d *Decoder) Decode(payload []byte, fPort uint8) (map[string]interface{}, bool, error)
- func (d *Decoder) DigitalInput(channel, value uint8)
- func (d *Decoder) DigitalOutput(channel, value uint8)
- func (d *Decoder) GPS(channel uint8, latitude, longitude, altitude float32)
- func (d *Decoder) Gyrometer(channel uint8, x, y, z float32)
- func (d *Decoder) Log() []*pb_handler.LogEntry
- func (d *Decoder) Luminosity(channel uint8, value uint16)
- func (d *Decoder) Presence(channel, value uint8)
- func (d *Decoder) RelativeHumidity(channel uint8, rh float32)
- func (d *Decoder) Temperature(channel uint8, celcius float32)
- type Encoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder is a CayenneLPP PayloadDecoder
func (*Decoder) Accelerometer ¶
func (*Decoder) AnalogInput ¶
func (*Decoder) AnalogOutput ¶
func (*Decoder) BarometricPressure ¶
func (*Decoder) DigitalInput ¶
func (*Decoder) DigitalOutput ¶
func (*Decoder) Luminosity ¶
func (*Decoder) RelativeHumidity ¶
func (*Decoder) Temperature ¶
Click to show internal directories.
Click to hide internal directories.