-
Notifications
You must be signed in to change notification settings - Fork 6
/
overview.go
27 lines (27 loc) · 1.1 KB
/
overview.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// openzwave provides a thin Go wrapper around the openzwave library.
//
// The following shows a simple use of the API which will log every notification received.
//
// var loop = func(api openzwave.API) {
// fmt.Printf("event loop starts\n")
// for {
// select {
// case quitNow := <-api.QuitSignal():
// _ = quitNow
// fmt.Printf("event loop ends\n")
// return
// }
// }
// }
//
// os.Exit(openzwave.
// BuildAPI("../go-openzwave/openzwave/config", "", "").
// AddIntOption("SaveLogLevel", LOG_LEVEL.NONE).
// AddIntOption("QueueLogLevel", LOG_LEVEL.NONE).
// AddIntOption("DumpTrigger", LOG_LEVEL.NONE).
// AddIntOption("PollInterval", 500).
// AddBoolOption("IntervalBetweenPolls", true).
// AddBoolOption("ValidateValueChanges", true).
// Run(loop))
package openzwave