decoders

package
v0.0.0-...-8969683 Latest Latest
Warning

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

Go to latest
Published: May 16, 2014 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Decoder for the "BMP085demoBatt.ino" sketch as defined: http://github.com/TheDistractor/ino/tree/master/jeelib/examples/Ports/bmp085demobatt/bmp085demobatt.ino

This decoder is slightly different than the base BMP085 decoder (also in this package) in that it allows for the node to send back a Battery low flag (the value of which is calculated in your sketch using perhaps the internal bandgap method, as per example above)

Registers as "Node-Bmp085Batt".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bmp085Batt

type Bmp085Batt struct {
	flow.Gadget
	In  flow.Input
	Out flow.Output
}

func (*Bmp085Batt) Run

func (w *Bmp085Batt) Run()

Start decoding Bmp085Batt packets.

type Bmp085BattData

type Bmp085BattData struct {
	Node  uint8
	Temp  uint16
	Press uint32
	Lobat uint8
}

Note:see jeelib for why 'Press' is 32bit

Jump to

Keyboard shortcuts

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