Go packages to interface with the Linux Netlink, Connector and One-Wire subsystems
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
connector
ibutton
log
netlink
w1
.gitignore
.travis.yml
COPYING
README.md

README.md

Build Status GoDoc

go-netlink

This is a suite of Go packages to interface with the Linux netlink subsystem.

go-netlink was created to talk to a Maxim iButton temperature sensor via netlink. The provided suite so far does not do much more than to do exactly that. Netlink / Connector / One-Wire have been separated into hierarchical layers to reflect the kernel's architecture. Feel free to extend this to more Netlink / Connector or One-Wire endpoints.

The project's license is GPL3+

ibutton tool installation

Go package management can install ibutton directly from github:

go install github.com/lambdasoup/go-netlink/ibutton/ibutton

ibutton tool usage

start a new mission

ibutton -command start

stop the currently running mission

ibutton -command stop

print out the sample log

ibutton -command read

show the button status

ibutton -command status

clear the button mission memory

ibutton -command clear