aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-12-28 01:31:15 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-12-28 01:31:15 +0100
commit623b4aca1392637ae212ef8f2620475dc47fbee7 (patch)
treecc2ce7650ea9e100ac7ca74041b01d95af16aad2 /cmd
parent9bfc2fe08fbb71322b31b86585816250baf8e883 (diff)
Send some messages
Diffstat (limited to 'cmd')
-rw-r--r--cmd/experimental/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/experimental/main.go b/cmd/experimental/main.go
index 577a516..f46fcdc 100644
--- a/cmd/experimental/main.go
+++ b/cmd/experimental/main.go
@@ -69,6 +69,10 @@ func onConnect(p gatt.Peripheral, err error) {
//c.HandleReadFunc(onRead)
//log.Println("Send")
//c.SetValue([]byte{0x01, 0x18})
+ p.WriteCharacteristic(c, []byte{0x01, 0x90}, false) // sdk
+ p.WriteCharacteristic(c, []byte{0x01, 0x16}, true) // ping
+ p.WriteCharacteristic(c, []byte{0x01, 0x18}, true) // version
+ p.WriteCharacteristic(c, []byte{0x01, 0x1a}, true) // battery
}
}
}