advertisements

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package advertisements provides support for Ruuvi Tag Bluetooth advertisements

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotRuuviManufacturer error = errors.New("manufacturer did not equal Ruuvi's manufacturer ID")
)

Functions

This section is empty.

Types

type V5

type V5 struct {
	ReceivedAt          time.Time
	Temperature         float64
	Humidity            float64
	Pressure            int
	Voltage             int
	TransmissionPower   int
	MovementCounter     int
	MeasurementSequence int
	MAC                 net.HardwareAddr
}

V5 represents the Data Format 5 Protocol Specification of the Ruuvi sensor bluetooth advertisement broadcasts.

func DecodeV5

func DecodeV5(data []byte) (V5, error)

DecodeV5 returns a V5, or an error if any required conditions are not met.

Jump to

Keyboard shortcuts

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