{"id":19195090,"url":"https://github.com/ksachdeva/pc-ble-driver-js-examples","last_synced_at":"2025-02-23T04:38:02.859Z","repository":{"id":136497837,"uuid":"62317413","full_name":"ksachdeva/pc-ble-driver-js-examples","owner":"ksachdeva","description":"Examples of how to use pc-ble-driver-js node module","archived":false,"fork":false,"pushed_at":"2016-08-02T13:55:31.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T08:35:49.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ksachdeva.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-30T14:31:54.000Z","updated_at":"2017-09-07T06:54:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e2788ba-2205-4534-a7b5-193f85b5c0e1","html_url":"https://github.com/ksachdeva/pc-ble-driver-js-examples","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/ksachdeva%2Fpc-ble-driver-js-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fpc-ble-driver-js-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fpc-ble-driver-js-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fpc-ble-driver-js-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksachdeva","download_url":"https://codeload.github.com/ksachdeva/pc-ble-driver-js-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240271526,"owners_count":19774859,"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":[],"created_at":"2024-11-09T12:08:19.157Z","updated_at":"2025-02-23T04:38:02.817Z","avatar_url":"https://github.com/ksachdeva.png","language":"TypeScript","readme":"# Examples showing how to use pc-ble-driver-js node module\n\nThis repository contains examples of how to use [pc-ble-driver-js](https://github.com/NordicSemiconductor/pc-ble-driver-js) node module from NordicSemiConductor\n\nSince you will make either a peripheral or central application (or may be both) you would need the corresponding\ndevices.\n\nOne easy way to create peripherals is to use LightBlue Explorer iOS application (https://itunes.apple.com/us/app/lightblue-explorer-bluetooth/id557428110?mt=8) and create a virtual peripheral in it.\n\nThe virtual peripheral I create has following properties :\n* LocalName : TestNRF5X\n* ServiceUUID : 1111\n* Service 1111 has a characteristic whose UUID is 2222 and is readable\n* I put 2 random values in 2222\n\nHere is a screenshot of how the virtual peripheral looks for me\n![Virtual Peripheral](/virtual_peripheral.PNG?raw=true \"Virtual Peripheral\")\n\n\n## nrf5x_apps\n\nThis nodejs application contains various examples that make use of pc-ble-driver-js node module\n\n## Setup\n\n```\nnpm install\n```\n\nNote that because pc-ble-driver-js module is not yet published you will get the master version from\ngithub and there is a possibility that it may be broken because of ongoing development \u0026 enhancements\n\n### example 1\n\nThis example shows how to\n* Scan for devices\n* Connect to selected device\n* Discover services in the selected device\n* Discover characteristics of the selected service\n* Read the selected characteristic\n\n[Read more about it!](nrf5x_apps/example1)\n\n## nrf5x_apps_typescript\n\nThis nodejs application contains various examples written using typescript that make use of pc-ble-driver-js node module\n\n## Setup\n\n```\nnpm install\ntypings install\n```\n\nNote that because pc-ble-driver-js module is not yet published you will get the master version from\ngithub and there is a possibility that it may be broken because of ongoing development \u0026 enhancements\n\n### example 1\n\nThis example shows how to\n* Scan for devices\n* Connect to selected device\n* Discover services in the selected device\n* Discover characteristics of the selected service\n* Read the selected characteristic\n\n[Read more about it!](nrf5x_apps_typescript/example1)\n\n\n## nrf5x_apps_rxjs\n\nThis nodejs application contains various examples written using typescript \u0026 RxJS that make use of rx-pc-ble-driver-js node module\n\n## Setup\n\n```\nnpm install\ntypings install\n```\n\nNote that because rx-pc-ble-driver-js module is not yet published you will get the master version from\ngithub\n\n### example 1\n\nThis example shows how to\n* Scan for devices\n* Connect to selected device\n* Discover services in the selected device\n* Discover characteristics of the selected service\n* Read the selected characteristic\n\nThe interesting thing with this example is that the code is more maintainable, readable \u0026 resilient thanks to\nReactive Extensions.\n\n[Read more about it!](nrf5x_apps_rxjs/example1)\n\n## Misc notes\n\n* My development and test machine is Macbook pro running OS X 10.11.xx (El Capitan)\n\n* I am using PCA10040 V1.1.0 2016.9 board\n\n* I use the latest and greatest connectivity firmware that is provided as part of pc-ble-driver-js node module\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksachdeva%2Fpc-ble-driver-js-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksachdeva%2Fpc-ble-driver-js-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksachdeva%2Fpc-ble-driver-js-examples/lists"}