-
-
Save NelzkieLabs/2486e0e6496e582d3ba3a7e2afbae8f7 to your computer and use it in GitHub Desktop.
Bluetooth GATT Services & Characteristics
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
| (function() { | |
| /* | |
| Queries the GATT Characteristics table in https://www.bluetooth.com/specifications/gatt/characteristics | |
| to print the info as JSON | |
| */ | |
| var rows = document.querySelectorAll("tr[class]"); | |
| var data = []; | |
| Array.prototype.forEach.call(rows, (row)=>{ | |
| data.push({ | |
| id: row.children[1].innerText, | |
| name: row.children[0].innerText, | |
| code: row.children[2].innerText, | |
| specification: row.children[3].innerText | |
| } | |
| ); | |
| }); | |
| console.log(data); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment