{"_id":"a-bluetooth-terminal","_rev":"3-9135be3beaf7e967d162944d5146edc1","name":"a-bluetooth-terminal","dist-tags":{"latest":"1.4.2"},"versions":{"1.4.0":{"name":"a-bluetooth-terminal","version":"1.4.0","description":"ES6 class for serial communication with Bluetooth Low Energy (Smart) devices","main":"src/BluetoothTerminal.js","scripts":{"build":"npm run clean:build && babel src/BluetoothTerminal.ts --extensions .ts --out-dir lib","ci":"npm run lint && npm run tsc && npm run test:coverage && npm run build","clean:build":"rm -rf lib","clean:coverage":"rm -rf coverage","coveralls":"npm run test:coverage -- --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && npm run clean:coverage","lint":"eslint --ext ts src","test":"mocha","test:coverage":"istanbul cover ./node_modules/mocha/bin/_mocha","tsc":"tsc"},"repository":{"type":"git","url":"git+https://github.com/loginov-rocks/bluetooth-terminal.git"},"keywords":["ble","bluetooth","bluetooth-low-energy","bluetooth-smart","communication","iot","physical-web","serial","smart"],"author":{"name":"Danila Loginov","email":"danila@loginov.rocks","url":"https://loginov.rocks"},"license":"MIT","bugs":{"url":"https://github.com/loginov-rocks/bluetooth-terminal/issues"},"homepage":"https://github.com/loginov-rocks/bluetooth-terminal","devDependencies":{"@babel/cli":"^7.4.3","@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","@babel/preset-typescript":"^7.3.3","@types/chai":"^4.1.7","@types/chai-as-promised":"^7.1.0","@types/jsdom":"^12.2.3","@types/mocha":"^5.2.6","@types/node":"^11.13.6","@types/sinon":"^7.0.11","@typescript-eslint/eslint-plugin":"^1.6.0","@typescript-eslint/parser":"^1.6.0","chai":"^4.2.0","chai-as-promised":"^7.1.1","coveralls":"^3.0.3","eslint":"^5.16.0","eslint-config-google":"^0.12.0","eslint-plugin-jsdoc":"^4.8.3","istanbul":"^0.4.5","jsdom":"^14.0.0","mocha":"^6.1.4","sinon":"^7.3.2","typescript":"^3.4.4","web-bluetooth-mock":"^1.0.2"},"gitHead":"82e0817e2e1ed96364b29977cfe5bd722c292e12","_id":"a-bluetooth-terminal@1.4.0","_nodeVersion":"15.11.0","_npmVersion":"7.8.0","dist":{"integrity":"sha512-ZxWlxVfxc/rGWYO6i7X1paaRcBvygtMrUzdSVd9mEOBft2V/GxC5sd+R0kryWjCoe0Kzvtzuvv0zoefGfRTtGw==","shasum":"209b6735e6487a1f39d64a9c0e7cc31d1e6516df","tarball":"https://registry.npmjs.org/a-bluetooth-terminal/-/a-bluetooth-terminal-1.4.0.tgz","fileCount":20,"unpackedSize":63169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgavBJCRA9TVsSAnZWagAA1XoP/jJFQnCTs6VaiBc+v52g\nfUq8O1pdNdl9k8RIg4n3XYEmw4+AMr0sZO8xJecInN4s71S3l/IdqhHrSyt3\neAiVEsW2neeTxzG6nuvfRdSzRLvS/qDVCRSrjJSljCHcLdpUvH3rKQeKICcW\ncOCbPbRbYISq2J8Cx+TtRjRCBa5w/w1vlO5+jjPZeiAE4bwSvlqAvszrAPO8\nOyj4Sc75GyJ6fjXKtlSe7hEnoEWDqsxJftj6h6NdBw1ItFXuMr7X+wPQPJsX\nYHUbh1+GRMACyUY1s3POd2ifU7ejtLgHzsn27kP730hCcG2L+DGgVkWNU7f3\nSBYhXJgOgORXVbQc9eAj780dWLVAe/XyIxHK/RHA9RuoZ0cWr++u3KPgL17s\nKS/2+W+jj11/2jY/xiqL7dKj/p5j0SvU8eT3S20b+Ozij9fx3M4OR9O/4DJn\nP8gHyRmkaO0oGTQDaPE+ONchxVDwRe9tk3usAWg3DmIse8k5N4MqdWUKPXJ+\nCNNjH2b6GMQuN6uRg9MDDBYKZ31ZcU4ncQdI3baCeVfxkjphge6b/3As1kg+\nBOqCOsqS9pbM+KiubYeHJz9w7NqBLiV5KOMnaIF2ZJyEdKddkg7d0sZEF8ha\nk+yAzkaD59MK0y5nZI/8Cu0llyRpKxrNvkyNEV5CSBWluPKNXjX/0zpQm0My\nsXF9\r\n=NQ1Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc9pdDgMyfXHpyfiHdlwEqQE+udjNAO2Q3k1ohLSld2gIgGsWigTyd0jjRZPK8KUlnRLq3ZD9fPqJ2w3+dBaReys0="}]},"_npmUser":{"name":"artur-","email":"artur@vaadin.com"},"directories":{},"maintainers":[{"name":"artur-","email":"artur@vaadin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/a-bluetooth-terminal_1.4.0_1617621064955_0.5970461071173014"},"_hasShrinkwrap":false},"1.4.1":{"name":"a-bluetooth-terminal","version":"1.4.1","description":"ES6 class for serial communication with Bluetooth Low Energy (Smart) devices","main":"src/BluetoothTerminal.js","scripts":{"build":"npm run clean:build && babel src/BluetoothTerminal.ts --extensions .ts --out-dir lib","ci":"npm run lint && npm run tsc && npm run test:coverage && npm run build","clean:build":"rm -rf lib","clean:coverage":"rm -rf coverage","coveralls":"npm run test:coverage -- --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && npm run clean:coverage","lint":"eslint --ext ts src","test":"mocha","test:coverage":"istanbul cover ./node_modules/mocha/bin/_mocha","tsc":"tsc"},"repository":{"type":"git","url":"git+https://github.com/loginov-rocks/bluetooth-terminal.git"},"keywords":["ble","bluetooth","bluetooth-low-energy","bluetooth-smart","communication","iot","physical-web","serial","smart"],"author":{"name":"Danila Loginov","email":"danila@loginov.rocks","url":"https://loginov.rocks"},"license":"MIT","bugs":{"url":"https://github.com/loginov-rocks/bluetooth-terminal/issues"},"homepage":"https://github.com/loginov-rocks/bluetooth-terminal","devDependencies":{"@babel/cli":"^7.4.3","@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","@babel/preset-typescript":"^7.3.3","@types/chai":"^4.1.7","@types/chai-as-promised":"^7.1.0","@types/jsdom":"^12.2.3","@types/mocha":"^5.2.6","@types/node":"^11.13.6","@types/sinon":"^7.0.11","@typescript-eslint/eslint-plugin":"^1.6.0","@typescript-eslint/parser":"^1.6.0","chai":"^4.2.0","chai-as-promised":"^7.1.1","coveralls":"^3.0.3","eslint":"^5.16.0","eslint-config-google":"^0.12.0","eslint-plugin-jsdoc":"^4.8.3","istanbul":"^0.4.5","jsdom":"^14.0.0","mocha":"^6.1.4","sinon":"^7.3.2","typescript":"^3.4.4","web-bluetooth-mock":"^1.0.2"},"gitHead":"02a700f59e2bb6d9a75fcbf73f20b24fdafdb07d","_id":"a-bluetooth-terminal@1.4.1","_nodeVersion":"15.11.0","_npmVersion":"7.8.0","dist":{"integrity":"sha512-mu+thfq2TgHAOl9nqk0w4f6SC8wg9yr8e7a0cAJcrWNPfjMWXr0o7aBLAlyplz3j2gK9NxdgYEPkFJrOn/zhyQ==","shasum":"1a0d540f2bd1e39d5fd6deccae20f503b9a577d1","tarball":"https://registry.npmjs.org/a-bluetooth-terminal/-/a-bluetooth-terminal-1.4.1.tgz","fileCount":20,"unpackedSize":63203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgavDrCRA9TVsSAnZWagAA+iUQAKQXQVHQKRPS8htVxWE0\noKWhAEcbQxY5B5XRB4D9h4HTTPrHBSRPWt8ZzMe1d++Z2slCRQRbirteqvEK\nFu/oGEy6aEIfUBUzZ2dwGbQfC/b367KNZBMAzqNXqu5Tg8Z1nXuujeXFb60J\nvrXJ45W8CV5MpenF9YSfrG1Q9dVKjp+Cwh45rM3d3ARHXQTrSt2BRex4VCEE\n3giTyAjd4csHmx1eUJ4OPZesL3QClcoyS4kl9Va8gSMeM6I/jbh7p8xxsJBV\nJQkmCJaI3SesrAZCoqlbgWanGsNMn//vTaEMxVgApuPbFdEQiluQB7ESpJzd\nJahCcTOXcuZTzeUwgCqtUOl3aRggtJEmPdnkTyJhX1viV0MuxGE1Npeg0Z5G\ng9oconjoo8fAxG9QJkrT/OtWmiWVw6bOTe0hbZcCrGSyVdLPRAUrrlitVhp2\nPt+5ivQN0xfIdHedksFfe0EYo9gOgJsK3bJOhsXlkggaX+ENZ2Q4ta1MFE1+\n6ndOElZlvNGvEEg3FNWCnPT3N9EnoNLaT10DU/vGijbICwA4cpgF+Ci09s7N\neyHQSSD/zUhDmL+gHVp8OhzFsqxWxEKl0ZsM8IashRi4UdOB7p8LdiiOsgAO\nASWf3L3+kjfQ5wI61rrvdkXCIOYjF7zHpWkTfALIok1WXtlQiDAbQZ45otwc\nqLJq\r\n=SctS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICG9K6uAuasHKwpTSngCLm9u1wQe1j3TL0UfksjPQFQkAiEAz+a2SceCjnycTyZV8eCsPWMxR0IE9noIOU3pawl2AVY="}]},"_npmUser":{"name":"artur-","email":"artur@vaadin.com"},"directories":{},"maintainers":[{"name":"artur-","email":"artur@vaadin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/a-bluetooth-terminal_1.4.1_1617621226941_0.45768869896534703"},"_hasShrinkwrap":false},"1.4.2":{"name":"a-bluetooth-terminal","version":"1.4.2","description":"ES6 class for serial communication with Bluetooth Low Energy (Smart) devices","main":"src/BluetoothTerminal.js","scripts":{"build":"npm run clean:build && babel src/BluetoothTerminal.ts --extensions .ts --out-dir lib","ci":"npm run lint && npm run tsc && npm run test:coverage && npm run build","clean:build":"rm -rf lib","clean:coverage":"rm -rf coverage","coveralls":"npm run test:coverage -- --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && npm run clean:coverage","lint":"eslint --ext ts src","test":"mocha","test:coverage":"istanbul cover ./node_modules/mocha/bin/_mocha","tsc":"tsc"},"repository":{"type":"git","url":"git+https://github.com/loginov-rocks/bluetooth-terminal.git"},"keywords":["ble","bluetooth","bluetooth-low-energy","bluetooth-smart","communication","iot","physical-web","serial","smart"],"author":{"name":"Danila Loginov","email":"danila@loginov.rocks","url":"https://loginov.rocks"},"license":"MIT","bugs":{"url":"https://github.com/loginov-rocks/bluetooth-terminal/issues"},"homepage":"https://github.com/loginov-rocks/bluetooth-terminal","devDependencies":{"@babel/cli":"^7.4.3","@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","@babel/preset-typescript":"^7.3.3","@types/chai":"^4.1.7","@types/chai-as-promised":"^7.1.0","@types/jsdom":"^12.2.3","@types/mocha":"^5.2.6","@types/node":"^11.13.6","@types/sinon":"^7.0.11","@typescript-eslint/eslint-plugin":"^1.6.0","@typescript-eslint/parser":"^1.6.0","chai":"^4.2.0","chai-as-promised":"^7.1.1","coveralls":"^3.0.3","eslint":"^5.16.0","eslint-config-google":"^0.12.0","eslint-plugin-jsdoc":"^4.8.3","istanbul":"^0.4.5","jsdom":"^14.0.0","mocha":"^6.1.4","sinon":"^7.3.2","typescript":"^3.4.4","web-bluetooth-mock":"^1.0.2"},"gitHead":"3c695eab3fe19b4d065b46effb5fcae9c47f4ceb","_id":"a-bluetooth-terminal@1.4.2","_nodeVersion":"15.11.0","_npmVersion":"7.8.0","dist":{"integrity":"sha512-0o5vzr6oKc7qQYPB6NfiKYPknCHySNmaFv2ARdLiUlkr9rgYM6DRkiw90nEuXq7fPOz4rjCIcbXWfxU0I0+CUQ==","shasum":"701953e51bf27a5a7f2f2d1d7c289cf8cb8e623a","tarball":"https://registry.npmjs.org/a-bluetooth-terminal/-/a-bluetooth-terminal-1.4.2.tgz","fileCount":20,"unpackedSize":63243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgavFiCRA9TVsSAnZWagAA6F8QAJes1qPsGeQOz4k0ReLI\nIsFZatLM8lDNg4NrgvoqRbSNWo+iypEBCcjdXDTMnKJrCAnsuxs1nsnEAtDJ\nQcpyq5G/UOeRBq75bKlATHt5G25T1cumXFras84xXweT1BveqcI7Ag3j+lau\nPn49qmVxvmBHuKXdwvdh1hl1t3i0URy/Encz9wYVY0//CewTKwEoPQyTcr1H\nGYZOjY5HJDij5gxW/nLyadxzmwCEd7A4iTw+Blyo/poaVY5tEqOxVyKgQiBm\nqcT/7gsCXXQKZsP7OSfskvMeyOWJVax/qtm8U5UTkdh71sL+UYeVYbf5yh8Z\nPwY+7Wqw6OV+PFmJ95vUVjdqhBVYhXw7Z5Ufkvw+/JNzrz1Jku2FQfou+Qgj\nFTUANblVF3P/8wHxqAAMyRBZk7fKK/cKMmmXKnoipDnuPflE9FPoJBrH6i4K\nsZvBMQe1Nkkg50EsoC0LIPDcyg3Lx36jTXaVVS6PmUNeX6UJULdDH6MG0AGo\nrX4lqfWi43MXRYYZj413QIipwy6yT5He4On2HihVs0DOQvfzb5++e21Tc+Uu\nBA4FJQi33hWG7gbqZfy/tmOpK/POlOTlwWRXt6YTqaXWrVolJugSaMh/Hy+0\nM326JN1qMYTc8ZoTyE5TL+ZXdxqG2gFrgqZlGZFQ+BEQQ8bFQrtDrxQqizBN\noeIN\r\n=woCM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCu+0WrWnLVXC8AYDbLZ2qWsxOgaU20x9tfJcTjuiBW6gIhAOTEyWzQLdzdcdPr0u/59vQKO5kcpgBS8HIqdObrQM0Q"}]},"_npmUser":{"name":"artur-","email":"artur@vaadin.com"},"directories":{},"maintainers":[{"name":"artur-","email":"artur@vaadin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/a-bluetooth-terminal_1.4.2_1617621346405_0.5722804191884092"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-05T11:11:04.955Z","1.4.0":"2021-04-05T11:11:05.131Z","modified":"2022-04-11T12:17:30.374Z","1.4.1":"2021-04-05T11:13:47.096Z","1.4.2":"2021-04-05T11:15:46.626Z"},"maintainers":[{"name":"artur-","email":"artur@vaadin.com"}],"description":"ES6 class for serial communication with Bluetooth Low Energy (Smart) devices","homepage":"https://github.com/loginov-rocks/bluetooth-terminal","keywords":["ble","bluetooth","bluetooth-low-energy","bluetooth-smart","communication","iot","physical-web","serial","smart"],"repository":{"type":"git","url":"git+https://github.com/loginov-rocks/bluetooth-terminal.git"},"author":{"name":"Danila Loginov","email":"danila@loginov.rocks","url":"https://loginov.rocks"},"bugs":{"url":"https://github.com/loginov-rocks/bluetooth-terminal/issues"},"license":"MIT","readme":"# bluetooth-terminal\n\n[![NpmVersion](https://img.shields.io/npm/v/bluetooth-terminal.svg)](https://www.npmjs.com/package/bluetooth-terminal)\n[![Build Status](https://travis-ci.org/loginov-rocks/bluetooth-terminal.svg?branch=master)](https://travis-ci.org/loginov-rocks/bluetooth-terminal)\n[![Coverage Status](https://coveralls.io/repos/github/loginov-rocks/bluetooth-terminal/badge.svg?branch=master)](https://coveralls.io/github/loginov-rocks/bluetooth-terminal?branch=master)\n[![devDependencies Status](https://david-dm.org/loginov-rocks/bluetooth-terminal/dev-status.svg)](https://david-dm.org/loginov-rocks/bluetooth-terminal?type=dev)\n[![Greenkeeper badge](https://badges.greenkeeper.io/loginov-rocks/bluetooth-terminal.svg)](https://greenkeeper.io/)\n\n**BluetoothTerminal** is a class written in ES6 for serial communication with Bluetooth Low Energy (Smart) devices from\nthe web using [Web Bluetooth API](https://webbluetoothcg.github.io/web-bluetooth/).\n\nWith this class you can **communicate bidirectionally with your own device** through the one General Attribute Profile\ncharacteristic that only offered by DIY modules.\n\nPlease check out the [Web-Bluetooth-Terminal](https://github.com/loginov-rocks/Web-Bluetooth-Terminal) repository to see\nimplementation details in a real life example.\n\n## Quick start\n\n### Install\n\nYou can use the [script](https://github.com/loginov-rocks/bluetooth-terminal/blob/master/src/BluetoothTerminal.js)\ndirectly or install it using [npm](https://npmjs.com) and require in your code.\n\n```sh\nnpm install bluetooth-terminal\n```\n\n### Use\n\n```js\n// Obtain configured instance.\nlet terminal = new BluetoothTerminal();\n\n// Override `receive` method to handle incoming data as you want.\nterminal.receive = function(data) {\n  alert(data);\n};\n\n// Request the device for connection and get its name after successful connection.\nterminal.connect().then(() => {\n  alert(terminal.getDeviceName() + ' is connected!');\n});\n\n// Send something to the connected device.\nterminal.send('Simon says: Hello, world!');\n\n// Disconnect from the connected device.\nterminal.disconnect();\n```\n\n## API\n\n### `BluetoothTerminal`\n\nBluetooth Terminal class.\n\n**Kind**: global class\n\n* [BluetoothTerminal](#bluetoothterminal)\n  * [new BluetoothTerminal([serviceUuid], [characteristicUuid], [receiveSeparator], [sendSeparator], [onConnected], [onDisconnected])](#new-bluetoothterminalserviceuuid-characteristicuuid-receiveseparator-sendseparator-onconnected-ondisconnected)\n  * [setServiceUuid(uuid)](#setserviceuuiduuid)\n  * [setCharacteristicUuid(uuid)](#setcharacteristicuuiduuid)\n  * [setReceiveSeparator(separator)](#setreceiveseparatorseparator)\n  * [setSendSeparator(separator)](#setsendseparatorseparator)\n  * [setOnConnected(listener)](#setonconnectedlistener)\n  * [setOnDisconnected(listener)](#setondisconnectedlistener)\n  * [connect() ⇒ Promise](#connect--promise)\n  * [disconnect()](#disconnect)\n  * [receive(data)](#receivedata)\n  * [send(data) ⇒ Promise](#senddata--promise)\n  * [getDeviceName() ⇒ string](#getdevicename--string)\n\n---\n\n#### `new BluetoothTerminal([serviceUuid], [characteristicUuid], [receiveSeparator], [sendSeparator], [onConnected], [onDisconnected])`\n\nCreate preconfigured Bluetooth Terminal instance.\n\n| Parameter            | Type                     | Default  | Description                     |\n| -------------------- | ------------------------ | -------- | ------------------------------- |\n| [serviceUuid]        | `number` &#124; `string` | `0xFFE0` | Service UUID                    |\n| [characteristicUuid] | `number` &#124; `string` | `0xFFE1` | Characteristic UUID             |\n| [receiveSeparator]   | `string`                 | `'\\n'`   | Receive separator               |\n| [sendSeparator]      | `string`                 | `'\\n'`   | Send separator                  |\n| [onConnected]        | `Function` &#124; `null` | `null`   | Listener for connected event    |\n| [onDisconnected]     | `Function` &#124; `null` | `null`   | Listener for disconnected event |\n\n---\n\n#### `setServiceUuid(uuid)`\n\nSet number or string representing service UUID used.\n\n**Kind**: instance method of `BluetoothTerminal`\n\n| Parameter | Type                     | Description  |\n| --------- | ------------------------ | ------------ |\n| uuid      | `number` &#124; `string` | Service UUID |\n\n---\n\n#### `setCharacteristicUuid(uuid)`\n\nSet number or string representing characteristic UUID used.\n\n**Kind**: instance method of `BluetoothTerminal`\n\n| Parameter | Type                     | Description         |\n| --------- | ------------------------ | ------------------- |\n| uuid      | `number` &#124; `string` | Characteristic UUID |\n\n---\n\n#### `setReceiveSeparator(separator)`\n\nSet character representing separator for data coming from the connected device, end of line for example.\n\n**Kind**: instance method of `BluetoothTerminal`\n\n| Parameter | Type     | Description                                |\n| --------- | -------- | ------------------------------------------ |\n| separator | `string` | Receive separator with length equal to one |\n\n---\n\n#### `setSendSeparator(separator)`\n\nSet string representing separator for data coming to the connected device, end of line for example.\n\n**Kind**: instance method of `BluetoothTerminal`\n\n| Parameter | Type     | Description    |\n| --------- | -------- | -------------- |\n| separator | `string` | Send separator |\n\n---\n\n#### `setOnConnected(listener)`\n\nSet a listener to be called after a device is connected.\n\n**Kind**: instance method of `BluetoothTerminal`\n\n| Parameter | Type                     | Description                  |\n| --------- | ------------------------ | ---------------------------- |\n| listener  | `Function` &#124; `null` | Listener for connected event |\n\n---\n\n#### `setOnDisconnected(listener)`\n\nSet a listener to be called after a device is disconnected.\n\n**Kind**: instance method of `BluetoothTerminal`\n\n| Parameter | Type                     | Description                     |\n| --------- | ------------------------ | ------------------------------- |\n| listener  | `Function` &#124; `null` | Listener for disconnected event |\n\n---\n\n#### `connect()` ⇒ `Promise`\n\nLaunch Bluetooth device chooser and connect to the selected device.\n\n**Kind**: instance method of `BluetoothTerminal`\n\n**Returns**: `Promise` - Promise which will be fulfilled when notifications will be started or rejected if something\nwent wrong\n\n---\n\n#### `disconnect()`\n\nDisconnect from the connected device.\n\n**Kind**: instance method of `BluetoothTerminal`\n\n---\n\n#### `receive(data)`\n\nData receiving handler which called whenever the new data comes from the connected device, override it to handle\nincoming data.\n\n**Kind**: instance method of `BluetoothTerminal`\n\n| Parameter | Type     | Description |\n| --------- | -------- | ----------- |\n| data      | `string` | Data        |\n\n---\n\n#### `send(data)` ⇒ `Promise`\n\nSend data to the connected device.\n\n**Kind**: instance method of `BluetoothTerminal`\n\n**Returns**: `Promise` - Promise which will be fulfilled when data will be sent or rejected if something went wrong\n\n| Parameter | Type     | Description |\n| --------- | -------- | ----------- |\n| data      | `string` | Data        |\n\n---\n\n#### `getDeviceName()` ⇒ `string`\n\nGet the connected device name.\n\n**Kind**: instance method of `BluetoothTerminal`\n\n**Returns**: `string` - Device name or empty string if not connected\n\n## Contribution\n\nPlease use the [dev](https://github.com/loginov-rocks/bluetooth-terminal/tree/dev) branch and feel free to contribute!\n","readmeFilename":"README.md"}