pm5

package
v0.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	StatusCh chan Status

	ble.Client
	Status
	// contains filtered or unexported fields
}

Client a Bluetooth LE Client connection to a PM5 rowing computer with a data channel for noticications receiced from it's service

func NewClient

func NewClient() (*Client, error)

NewClient Searches for and connects to the first PM5 it can

type Status

type Status struct {
	StrokeCount uint16        // Total strokes for session
	LastStroke  time.Duration // Time marker for last stroke event
	Spm         int           // Strokes per miniute
	Power       uint16        // Power in watts
	Speed       uint16        // Speed in 0.001m/s
	RowState    byte          // Are we still rowing?
}

Status of a Client, e.g. stroke count, current speed etc.

Jump to

Keyboard shortcuts

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