Skip to content

Instantly share code, notes, and snippets.

@jacobrosenthal
Created September 5, 2015 22:20
Show Gist options
  • Save jacobrosenthal/9728ad4ddb1d3c0bdc04 to your computer and use it in GitHub Desktop.
Save jacobrosenthal/9728ad4ddb1d3c0bdc04 to your computer and use it in GitHub Desktop.
uid advertising (and probably more) doesnt stop from websocket -- notice the xpc stop confirm time is too short
[email protected] ws /Users/jacobrosenthal/Downloads/ble_software
> DEBUG=bindings node ./node_modules/eddystone-beacon/node_modules/bleno/ws-slave.js
bindings sendCBMsg: 1, {
"kCBMsgArgName": "node-1441491214887",
"kCBMsgArgOptions": {
"kCBInitOptionShowPowerAlert": 1
},
"kCBMsgArgType": 1
} +0ms
bindings xpcEvent: {
"kCBMsgId": 6,
"kCBMsgArgs": {
"kCBMsgArgState": 5
}
} +2ms
bindings state change poweredOn +1ms
bindings sendCBMsg: 8, {
"kCBAdvDataAppleMfgData": [
3,
3,
170,
254,
23,
22,
170,
254,
0,
235,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
170,
187,
204,
221,
238,
255,
0,
0
]
} +7s
bindings xpcEvent: {
"kCBMsgId": 16,
"kCBMsgArgs": {
"kCBMsgArgResult": 0
}
} +15ms
bindings sendCBMsg: 9, null +5s
bindings xpcEvent: {
"kCBMsgId": 17,
"kCBMsgArgs": {
"kCBMsgArgResult": 0
}
} +14ms
^CJacobs-Air:ble_software jacobrosenthal$ DEBUG=bindings node node_modules/eddystone-beacon/examples/uid/simple.js
bindings sendCBMsg: 1, {
"kCBMsgArgName": "node-1441491121278",
"kCBMsgArgOptions": {
"kCBInitOptionShowPowerAlert": 1
},
"kCBMsgArgType": 1
} +0ms
bindings xpcEvent: {
"kCBMsgId": 6,
"kCBMsgArgs": {
"kCBMsgArgState": 5
}
} +2ms
bindings state change poweredOn +0ms
bindings sendCBMsg: 8, {
"kCBAdvDataAppleMfgData": [
3,
3,
170,
254,
23,
22,
170,
254,
0,
235,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
170,
187,
204,
221,
238,
255,
0,
0
]
} +3ms
bindings xpcEvent: {
"kCBMsgId": 16,
"kCBMsgArgs": {
"kCBMsgArgResult": 0
}
} +6ms
bindings sendCBMsg: 9, null +5s
bindings xpcEvent: {
"kCBMsgId": 17,
"kCBMsgArgs": {
"kCBMsgArgResult": 0
}
} +155ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment