{"id":22635885,"url":"https://github.com/webduinoio/webduino-bluetooth-transport","last_synced_at":"2025-03-29T04:45:24.258Z","repository":{"id":58232220,"uuid":"45898755","full_name":"webduinoio/webduino-bluetooth-transport","owner":"webduinoio","description":"🔌  Bluetooth Transport Plugin for webduino-js","archived":false,"fork":false,"pushed_at":"2018-05-30T03:17:32.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"gh-pages","last_synced_at":"2025-03-03T15:03:07.282Z","etag":null,"topics":["bluetooth","webduino","webduino-js"],"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/webduinoio.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":"2015-11-10T08:37:47.000Z","updated_at":"2018-05-30T03:17:33.000Z","dependencies_parsed_at":"2022-08-31T00:22:19.945Z","dependency_job_id":null,"html_url":"https://github.com/webduinoio/webduino-bluetooth-transport","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webduinoio%2Fwebduino-bluetooth-transport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webduinoio%2Fwebduino-bluetooth-transport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webduinoio%2Fwebduino-bluetooth-transport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webduinoio%2Fwebduino-bluetooth-transport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webduinoio","download_url":"https://codeload.github.com/webduinoio/webduino-bluetooth-transport/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140543,"owners_count":20729797,"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":["bluetooth","webduino","webduino-js"],"created_at":"2024-12-09T03:17:20.181Z","updated_at":"2025-03-29T04:45:24.228Z","avatar_url":"https://github.com/webduinoio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webduino-bluetooth-transport\nBluetooth Transport Plugin for webduino-js\n\n## Prerequisite\nWhen running in browser, you must have the following installed:\n\n1. [API Proxy for Google Chrome™](https://chrome.google.com/webstore/detail/api-proxy-for-google-chro/pddlkidaibpbhpkfbhkbeolbagpmkhhn) (launch before opening your application)\n2. [API Proxy Agent for Google Chrome™](https://chrome.google.com/webstore/detail/api-proxy-agent-for-googl/kdhdgaemffmpfmceolgbfpnfiafbjdkp)\n\nto interface with Webduino/Arduino via Bluetooth.\n\n## Installation\n### Browser\n_See also:_\n[webduino-js](https://github.com/webduinoio/webduino-js)\n\nThe webduino-base.js or webduino-all.js has bundled serial and bluetooth transports by default. If you have successfully built it or use the CDN version, you are ready to go.\n\n### Cordova\nUsing [bower](http://bower.io):\n```sh\n$ bower install webduinoio/webduino-bluetooth-transport\n```\n\nIn project directory:\n```sh\n$ cordova plugin add cordova-plugin-bluetooth-serial\n```\n\nInsert script _after_ webduino-base.js (or webduino-all.js):\n```html\n\u003cscript src=\"bower_components/webduino-js/dist/webduino-base.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/webduino-bluetooth-transport/src/CordovaBluetoothTransport.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/webduino-js/src/module/Led.js\"\u003e\u003c/script\u003e\n... (modules used)\n```\n\n### Node.js\n```sh\n$ npm install webduino-bluetooth-transport\n```\n\n## Usage\n**webduino-js** provides isomorphic APIs:\n\n```javascript\n// need to acquire 'webduino' in Node.js:\n// var webduino = require('webduino-js');\n\nvar board, led;\n\nboard = new webduino.Arduino({\n  transport: 'bluetooth',\n  address: 'xx:xx:xx:xx:xx:xx'\n});\n\n// Or:\n// board = new webduino.Arduino({\n//   transport: require('webduino-bluetooth-transport'),\n//   address: 'xx:xx:xx:xx:xx:xx'\n// });\n\nboard.on('ready', function() {\n  led = new webduino.module.Led(board, board.getDigitalPin(10));\n  led.on();\n});\n```\n\n## [License](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebduinoio%2Fwebduino-bluetooth-transport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebduinoio%2Fwebduino-bluetooth-transport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebduinoio%2Fwebduino-bluetooth-transport/lists"}