Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niedbalski/go-ultraeasy
Go bindings/Library for interact with the Third party driver for LifeScan ultraeasy devices.
https://github.com/niedbalski/go-ultraeasy
Last synced: about 1 month ago
JSON representation
Go bindings/Library for interact with the Third party driver for LifeScan ultraeasy devices.
- Host: GitHub
- URL: https://github.com/niedbalski/go-ultraeasy
- Owner: niedbalski
- Created: 2015-10-19T19:45:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-19T19:49:01.000Z (about 9 years ago)
- Last Synced: 2024-10-15T08:33:04.073Z (3 months ago)
- Language: Go
- Size: 148 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Description
===========This is a GO binding library (plus some additions) for the
[UltraEasy](https://github.com/daniel-thompson/ultraeasy) library.Usage
======You will need to have libultraeasy installed on the system
```bash
$ sudo add-apt-repository ppa:niedbalski/ultraeasy-driver
$ sudo apt-get update
$ sudo apt-get install libultraeasy libultraeasy-dev
```* Example code:
```go
package mainimport (
"fmt"
"github.com/niedbalski/go-ultraeasy"
)func main() {
devices, err := ultraeasy.GetDevices()
if err != nil {
fmt.Println(err)
}for _, device := range devices {
fmt.Println("Serial:", device.GetSerial(), "Version:", device.GetVersion())device.GetHandler().GetAllReadingsCallback(func(reading *ultraeasy.UltraEasyReading) {
fmt.Println(reading.GetValue(), reading.GetTime())
})
}
}
}
```