Skip to content

A Go API to communicate with the Microship RN2483 module over serial

License

Notifications You must be signed in to change notification settings

sagneessens/RN2483

Repository files navigation

RN2483

Build Status GoDoc License: MIT

This library gives users the ability to use the RN2483 module in their application. For more info about the RN2483 module commands, see http://ww1.microchip.com/downloads/en/DeviceDoc/40001784F.pdf.

As this is a work in progress, not all commands are supported yet. For more info about what is supported, check the go docs reference.

Usage

package main

import (
  "fmt"
  "time"

  "github.com/bullettime/rn2483"
)

func main() {
  // Setup the serial information
  rn2483.SetName("/dev/cu.usbmodem14111")
  rn2483.setBaud(57600)
  rn2483.SetTimeout(time.Millisecond * 500)

  // Connect the RN2483 via serial
  rn2483.Connect()
  // Make sure the app closes the connection at the end the free the resource
  defer rn2483.Disconnect()

  // Do you stuff
  fmt.Println(rn2483.Version())
}

About

A Go API to communicate with the Microship RN2483 module over serial

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages