datalogger

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

README

go-iBBQ Data Logger Example

Building

Linux
$ GOOS=linux go build
OS X
$ GOOS=darwin go build

Usage

$ LOGXI=main=INF ./datalogger
12:56:06.920508 INF main Connecting to device
12:56:13.419140 INF main Connected to device
12:56:13.433666 INF main Received battery data batteryPct: 96
12:56:14.123995 INF main Received temperature data temperatures: [19 18]
12:56:16.164030 INF main Received temperature data temperatures: [19 18]
12:56:18.503975 INF main Received temperature data temperatures: [19 18]
12:56:20.453983 INF main Received temperature data temperatures: [19 18]
12:56:22.404003 INF main Received temperature data temperatures: [19 18]
^C12:56:24.377496 INF main Disconnected # <- ctrl-C was pressed (SIGINT)
12:56:24.467517 INF main Exiting
$

Documentation

Overview

Copyright 2018 the original author or authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL