{"id":22860065,"url":"https://github.com/reelyactive/advlib-identifier","last_synced_at":"2025-03-31T08:22:59.462Z","repository":{"id":57173814,"uuid":"144987917","full_name":"reelyactive/advlib-identifier","owner":"reelyactive","description":"Library for extracting the wireless device identifier from a transmitted packet. We believe in an open Internet of Things.","archived":false,"fork":false,"pushed_at":"2018-08-16T14:41:57.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T23:30:11.556Z","etag":null,"topics":["advlib"],"latest_commit_sha":null,"homepage":"","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":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-16T12:57:29.000Z","updated_at":"2022-03-13T03:20:46.000Z","dependencies_parsed_at":"2022-08-24T13:31:12.587Z","dependency_job_id":null,"html_url":"https://github.com/reelyactive/advlib-identifier","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-identifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fadvlib-identifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fadvlib-identifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fadvlib-identifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reelyactive","download_url":"https://codeload.github.com/reelyactive/advlib-identifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246437039,"owners_count":20777141,"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"],"created_at":"2024-12-13T09:08:51.234Z","updated_at":"2025-03-31T08:22:59.427Z","avatar_url":"https://github.com/reelyactive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"advlib-identifier\n=================\n\nLibrary for extracting the wireless device identifier from a transmitted packet.  We believe in an open Internet of Things.\n\n\nBluetooth Low Energy (BLE)\n--------------------------\n\nExtract the identifier (and its type) from a BLE Packet Data Unit (PDU) represented as a hexadecimal string.  For example:\n\n```javascript\nconst advlib = require('advlib-identifier');\n\nlet packet = '400dc3dc80ee20e40201060303edfe';\nlet identifier = advlib.ble.extractIdentifier(packet);\n\nconsole.log(identifier);\n// {\n//     identifier: \"e420ee80dcc3\",\n//     identifierType: 3\n// }\n```\n\n\nreelyActive (Sub-GHz Active RFID)\n---------------------------------\n\nExtract the identifier (and its type) from a packet represented as a hexadecimal string.  For example:\n\n```javascript\nconst advlib = require('advlib-identifier');\n\nlet packet = '1234567c';\nlet identifier = advlib.reelyactive.extractIdentifier(packet);\n\nconsole.log(identifier);\n// {\n//     identifier: \"001bc50941234567\",\n//     identifierType: 1\n// }\n```\n\n\nIdentifiers\n-----------\n\nIdentifier types are encoded as numbers.  The following identifier types are currently supported.\n\n| identifierType | Reference    | Description                         |\n|----------------|--------------|-------------------------------------|\n| 0              | TYPE_UNKNOWN | Unknown identifier                  |\n| 1              | TYPE_EUI64   | EUI-64                              |\n| 2              | TYPE_EUI48   | EUI-48 (BLE public address)         |\n| 3              | TYPE_RND48   | Random 48-bits (BLE random address) |\n\n```javascript\nconst advlib = require('advlib-identifier');\n\nlet identifierType = 3;\n\nif(identifierType === advlib.identifiers.TYPE_RND48) {\n  console.log('The identifier is a BLE random address');\n}\n// -\u003e The identifier is a BLE random address\n```\n\nLicense\n-------\n\nMIT License\n\nCopyright (c) 2018 [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-identifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freelyactive%2Fadvlib-identifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fadvlib-identifier/lists"}