Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/atPublic

Library for AT command interfaces on IoT devices. For now only Sara N21x (and possibly N31x)

License

NotificationsYou must be signed in to change notification settings

lab5e/at

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a work in progress. Use at your own risk

GoDoc

The AT command library is a Go library for communicating with mobilenetwork IoT modules via their AT command set. Currently only theuBlox Sara N210/N211 is supported, but this library might work withthe uBlox N310 too.

As mentioned above this is a work in progress so expect things tochange around and maintainance of this library to be somewhatepisodic.

If you want to contribute or you have suggestions, please do nothesitate to contact @borud.

Sample code

package mainimport ("log""os""github.com/lab5e/at/n211")const baudRate = 9600func main() {if len(os.Args) < 2 {log.Fatalf("Usage %s <serial device>", os.Args[0])}device := n211.New(os.Args[1], baudRate)if err := device.Start(); err != nil {log.Fatalf("Error opening device: %v", err)}defer device.Close()// Turn on debugging so you can see the interaction with the devicedevice.SetDebug(true)// Just send a blank AT command to verify the device is thereif err := device.AT(); err != nil {log.Fatalf("Error speaking to device on '%s': %v", os.Args[1], err)}log.Printf("Device seems to be responsive")}

About

Library for AT command interfaces on IoT devices. For now only Sara N21x (and possibly N31x)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp