serial

package module
v0.0.0-...-56250c8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-sensors/serial

Go library for providing serial port connectivity to sensors using the popular tarm/serial package.

Quickstart

Take a look at rpi-sensor-exporter for an example implementation that makes use of this library and several sensors.

Building

This software doesn't have any compiled assets.

Code of Conduct

We are committed to fostering an open and welcoming environment. Please read our code of conduct before participating in or contributing to this project.

Contributing

We welcome contributions and collaboration on this project. Please read our contributor's guide to understand how best to work with us.

License and Authors

Daniel James logo Daniel James

license GitHub contributors

This software is made available by Daniel James under the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SerialPort

type SerialPort struct {
	Config *serial.Config
}

func NewSerialPort

func NewSerialPort(name string, config *coreserial.SerialPortConfig) (*SerialPort, error)

func (*SerialPort) Open

func (sp *SerialPort) Open() (coreio.Port, error)

Jump to

Keyboard shortcuts

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