Categorygithub.com/alexhowarth/go-tilt
modulepackage
1.0.2
Repository: https://github.com/alexhowarth/go-tilt.git
Documentation: pkg.go.dev

# README

Tilt API in Go

GoDoc Go Report Card

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.

# Structs

IBeacon data.
Scanner for Tilt devices.
Tilt struct.

# Type aliases

Colour of the Tilt.
Devices stores discovered devices.