Created
September 28, 2015 22:05
-
-
Save jacobrosenthal/b6ab2205da5bad6ad0f5 to your computer and use it in GitHub Desktop.
Bleno Battery Linux Bindings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jacob@gaia:~/Downloads/ble_software$ DEBUG=bindings,gatt,gap,smp,mgmt,crypto,acl-att-stream node node_modules/bleno/examples/battery-service/main.js | |
on -> stateChange: poweredOn | |
gap startAdvertising: name = Battery, serviceUuids = [ | |
"180F" | |
] +0ms | |
gap startAdvertisingWithEIRData: advertisement data = 02010603030f18, scan data = 080842617474657279 +4ms | |
on -> advertisingStart: success | |
gatt handles = [ | |
{}, | |
{ | |
"type": "service", | |
"uuid": "1800", | |
"startHandle": 1, | |
"endHandle": 5 | |
}, | |
{ | |
"type": "characteristic", | |
"uuid": "2a00", | |
"properties": 2, | |
"secure": 0, | |
"startHandle": 2, | |
"valueHandle": 3 | |
}, | |
{ | |
"type": "characteristicValue", | |
"handle": 3, | |
"value": "Buffer('67616961', 'hex')" | |
}, | |
{ | |
"type": "characteristic", | |
"uuid": "2a01", | |
"properties": 2, | |
"secure": 0, | |
"startHandle": 4, | |
"valueHandle": 5 | |
}, | |
{ | |
"type": "characteristicValue", | |
"handle": 5, | |
"value": "Buffer('8000', 'hex')" | |
}, | |
{ | |
"type": "service", | |
"uuid": "1801", | |
"startHandle": 6, | |
"endHandle": 9 | |
}, | |
{ | |
"type": "characteristic", | |
"uuid": "2a05", | |
"properties": 32, | |
"secure": 0, | |
"startHandle": 7, | |
"valueHandle": 8 | |
}, | |
{ | |
"type": "characteristicValue", | |
"handle": 8, | |
"value": "Buffer('00000000', 'hex')" | |
}, | |
{ | |
"type": "descriptor", | |
"handle": 9, | |
"uuid": "2902", | |
"properties": 14, | |
"secure": 0, | |
"value": "Buffer('0000', 'hex')" | |
}, | |
{ | |
"type": "service", | |
"uuid": "180F", | |
"startHandle": 10, | |
"endHandle": 14 | |
}, | |
{ | |
"type": "characteristic", | |
"uuid": "2A19", | |
"properties": 2, | |
"secure": 0, | |
"startHandle": 11, | |
"valueHandle": 12 | |
}, | |
{ | |
"type": "characteristicValue", | |
"handle": 12, | |
"value": null | |
}, | |
{ | |
"type": "descriptor", | |
"handle": 13, | |
"uuid": "2901", | |
"properties": 2, | |
"secure": 0, | |
"value": "Battery level between 0 and 100 percent" | |
}, | |
{ | |
"type": "descriptor", | |
"handle": 14, | |
"uuid": "2904", | |
"properties": 2, | |
"secure": 0, | |
"value": "Buffer('040127ad010000', 'hex')" | |
} | |
] +13ms | |
^Cjacob@gaia:~/Downloads/ble_software$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment