Skip to content

grid-x/serial

This branch is 11 commits ahead of, 1 commit behind goburrow/serial:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

583c735 · Nov 7, 2021

History

36 Commits
Oct 15, 2017
Jan 3, 2016
Mar 1, 2017
Apr 17, 2015
Jan 3, 2016
Feb 9, 2017
Oct 31, 2019
Nov 4, 2019
May 27, 2021
Feb 9, 2017
Feb 9, 2017
May 27, 2021
Oct 30, 2021
May 22, 2015
Nov 4, 2019
Feb 9, 2017
May 27, 2021
Oct 3, 2017
Oct 3, 2017
Oct 3, 2017
May 27, 2021
Jan 3, 2016
Feb 9, 2017
Jan 3, 2016

Repository files navigation

serial Build Status GoDoc

Example

package main

import (
	"log"

	"github.com/goburrow/serial"
)

func main() {
	port, err := serial.Open(&serial.Config{Address: "/dev/ttyUSB0"})
	if err != nil {
		log.Fatal(err)
	}
	defer port.Close()

	_, err = port.Write([]byte("serial"))
	if err != nil {
		log.Fatal(err)
	}
}

Testing

Linux and Mac OS

  • socat -d -d pty,raw,echo=0 pty,raw,echo=0
  • on Mac OS, the socat command can be installed using homebrew: brew install socat

Windows

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.6%
  • Batchfile 0.4%