{"id":22859985,"url":"https://github.com/reelyactive/advlib-ble-services","last_synced_at":"2025-04-30T17:47:07.282Z","repository":{"id":57155840,"uuid":"296975891","full_name":"reelyactive/advlib-ble-services","owner":"reelyactive","description":"Open source library for decoding ambient Bluetooth Low Energy (BLE) advertising packet service data.  We believe in an open Internet of Things.","archived":false,"fork":false,"pushed_at":"2024-10-07T21:07:25.000Z","size":387,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-18T04:58:02.567Z","etag":null,"topics":["advlib","ble","ble-service","bluetooth-library","bluetooth-low-energy","eddystone","exposure-notification","minew","node-js","packet-decoding","pareto-anywhere","wiliot"],"latest_commit_sha":null,"homepage":"https://www.reelyactive.com/ambient-data/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reelyactive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-20T00:45:12.000Z","updated_at":"2024-11-22T02:53:03.000Z","dependencies_parsed_at":"2022-08-28T05:50:15.226Z","dependency_job_id":"9ca4ce76-606e-4ec7-a932-0ec90bae8f11","html_url":"https://github.com/reelyactive/advlib-ble-services","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fadvlib-ble-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fadvlib-ble-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fadvlib-ble-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fadvlib-ble-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reelyactive","download_url":"https://codeload.github.com/reelyactive/advlib-ble-services/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251754416,"owners_count":21638506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advlib","ble","ble-service","bluetooth-library","bluetooth-low-energy","eddystone","exposure-notification","minew","node-js","packet-decoding","pareto-anywhere","wiliot"],"created_at":"2024-12-13T09:08:36.320Z","updated_at":"2025-04-30T17:47:07.261Z","avatar_url":"https://github.com/reelyactive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"advlib-ble-services\n===================\n\nWireless advertising packet decoding library for Bluetooth Low Energy service data.  __advlib-ble-services__ is typically used as a library for [advlib-ble](https://github.com/reelyactive/advlib-ble) which itself is commonly a processor module of the protocol-agnostic [advlib](https://github.com/reelyactive/advlib).\n\n![Overview of advlib-ble-services](https://reelyactive.github.io/advlib-ble-services/images/overview.png)\n\n__advlib-ble-services__ is a lightweight [Node.js package](https://www.npmjs.com/package/advlib-ble-services) with no dependencies.   It is included in reelyActive's [Pareto Anywhere](https://www.reelyactive.com/pareto/anywhere/) open source IoT middleware.  See also its sister library [advlib-ble-manufacturers](https://github.com/reelyactive/advlib-ble-manufacturers).\n\n\nInstallation\n------------\n\n    npm install advlib-ble-services\n\n\nHello advlib-ble-services!\n--------------------------\n\n```javascript\nconst advlib = require('advlib-ble-services');\n\nlet uuid = 'feaa';\nlet serviceData = '10000367657470617265746f07';\n\nlet processedData = advlib.processServiceData(uuid, serviceData);\n\nconsole.log(processedData);\n```\n\nWhich should yield the following console output:\n\n    { txPower: 0, uri: \"https://getpareto.com\" }\n\n\nSupported Services\n------------------\n\nThe following services, in order of their assigned UUIDs, are supported by __advlib-ble-services__.\n\n| Service UUID | Service Name                  | /lib file                   |\n|:-------------|:------------------------------|:----------------------------|\n| 0x2a07       | Tx Power Level                | gatt.js                     |\n| 0x2a19       | Battery Level                 | gatt.js                     |\n| 0x2a37       | Heart Rate Measurement        | gatt.js                     |\n| 0x2a67       | Location and Speed            | gatt.js                     |\n| 0x2a6c       | Elevation                     | gatt.js                     |\n| 0x2a6d       | Pressure                      | gatt.js                     |\n| 0x2a6e       | Temperature                   | gatt.js                     |\n| 0x2a6f       | Humidity                      | gatt.js                     |\n| 0x2aa1       | Magnetic flux density 3D      | gatt.js                     |\n| 0x2aa2       | Language                      | gatt.js                     |\n| 0x2aee       | Electric Current              | gatt.js                     |\n| 0x2af9       | Generic Level                 | gatt.js                     |\n| 0x2afb       | Illuminance                   | gatt.js                     |\n| 0x2b18       | Voltage                       | gatt.js                     |\n| 0x2b8c       | CO2 Concentration             | gatt.js                     |\n| 0x2bcf       | Ammonia Concentration         | gatt.js                     |\n| 0x2bd0       | Carbon Monoxide Concentration | gatt.js                     |\n| 0x2bd1       | Methane Concentration         | gatt.js                     |\n| 0x2bd2       | NO2 Concentration             | gatt.js                     |\n| 0x2be4       | Noise                         | gatt.js                     |\n| 0x2be7       | VOC Concentration             | gatt.js                     |\n| 0xfd6f       | Exposure Notification         | exposurenotification.js     |\n| 0xfd9f       | Hewlett Packard Enterprise    | hewlettpackardenterprise.js |\n| 0xfdaf       | Wiliot                        | wiliot.js                   |\n| 0xfeaa       | Eddystone (Google)            | eddystone.js                |\n| 0xffe1       | Minew                         | minew.js                    |\n\nConsult the [Bluetooth Assigned Numbers](https://www.bluetooth.com/specifications/assigned-numbers/) page for the most recent 16-bit UUIDs document.\n\n\nSupported Devices\n-----------------\n\nThe following is a _non-exhaustive_ list of devices supported by __advlib-ble-services__.\n\n| Manufacturer | Model/Device             | /lib file                |\n|:-------------|:-------------------------|:-------------------------|\n| Various      | Heart rate monitor       | gatt.js                  |\n| Various      | Eddystone beacon         | eddystone.js             |\n| Various      | Android phone (contact tracing) | exposurenotification.js  |\n| Apple        | iPhone (contact tracing) | exposurenotification.js  |\n| Wiliot       | Pixel                    | wiliot.js                |\n| Minew        | E8S ([Tutorial](https://reelyactive.github.io/diy/minew-e8-config/)) | minew.js |\n| Minew        | S1 ([Tutorial](https://reelyactive.github.io/diy/minew-s1-config/)) | minew.js |\n| Minew        | B10 ([Tutorial](https://reelyactive.github.io/diy/minew-b10-config/)) | minew.js |\n| Minew        | MSP01 ([Tutorial](https://reelyactive.github.io/diy/minew-msp01-config/)) | minew.js |\n| Minew        | MSV01                    | minew.js                 |\n| Minew        | MBT01                    | minew.js                 |\n| Minew        | MSL01                    | minew.js                 |\n| Arduino      | Nicla Vision ([Tutorial](https://reelyactive.github.io/diy/nicla-vision-dev/)) | gatt.js |\n\n\nContributing\n------------\n\nDiscover [how to contribute](CONTRIBUTING.md) to this open source project which upholds a standard [code of conduct](CODE_OF_CONDUCT.md).\n\n\nSecurity\n--------\n\nConsult our [security policy](SECURITY.md) for best practices using this open source software and to report vulnerabilities.\n\n\nLicense\n-------\n\nMIT License\n\nCopyright (c) 2015-2024 [reelyActive](https://www.reelyactive.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, \nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN \nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fadvlib-ble-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freelyactive%2Fadvlib-ble-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fadvlib-ble-services/lists"}