# README
Tilt API in Go
This package provides a library for reading data from Tilt sensors.
Tilt sensors are devices for brewers that read specific gravity and temperature during fermentation.
Installation
go get github.com/alexhowarth/go-tilt
Usage
s := tilt.NewScanner()
s.Scan(20 * time.Second)
for _, t := range s.Tilts() {
t.Print()
}
Compatibility
This project currently uses a specific fork of go-ble that is compatible with both Linux and macOS.
Cross compiling
To create a binary for use on a Raspberry Pi, simply build it for ARM and copy the binary (no other dependencies are required).
env GOOS=linux GOARCH=arm go build examples/scanner/scanner.go
# Packages
No description provided by the author
# Functions
IsIBeacon to determine if data is an iBeacon.
IsTilt tests if the data is from a Tilt.
NewIBeacon creates an iBeacon from a valid BLE event.
NewScanner returns a Scanner.
NewTilt returns a Tilt from an iBeacon.
# Variables
ErrNotBeacon - the BLE device is not an iBeacon.
ErrNotTilt - the BLE device does not match anything in tiltType.