Skip to content

Instantly share code, notes, and snippets.

View BinaryBrain's full-sized avatar
🤖
🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖

Sacha Bron BinaryBrain

🤖
🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖🤖
View GitHub Profile
function log(s) { console.log(s) }
var myDescriptor;
function onReadButtonClick() {
let serviceUuid = 0xff40;
let characteristicUuid = 0xff42;
log('Requesting any Bluetooth Device...');
navigator.bluetooth.requestDevice({
// filters: [...] <- Prefer filters to save energy & show relevant devices.
Attempting to pair with 30:AE:A4:4E:25:46
[00:01:21.785] EVT <= 3E 13 01 00 00 00 01 00 78 05 8B 52 FD 24 27 00 00 00 2A 00 05
[00:01:21.785] LOG -- hci.c.2181: LE Connection_complete (status=0) type 0, 24:FD:52:8B:05:78
[00:01:21.790] LOG -- hci.c.184: create_connection_for_addr 24:FD:52:8B:05:78, type 0
[00:01:21.797] LOG -- hci.c.2233: New connection: handle 0, 24:FD:52:8B:05:78
[00:01:21.804] LOG -- hci.c.3756: BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 1
[00:01:21.810] EVT <= 61 01 01
[00:01:21.814] LOG -- sm.c.3170: sm: connected
[00:01:21.818] LOG -- sm.c.3183: New sm_conn, role slave
@BinaryBrain
BinaryBrain / gist:9118501
Last active August 29, 2015 13:56
Privacy Policy for some apps

Privacy Policy

English

No user information is stored, used or sent to anybody.

Français

Aucune donnée de l'utilisateur n'est stockée, utilisée ou envoyée à qui que ce soit.