{"_id":"noble-device","_rev":"24-6f161b0805452a6b90e3b4436e20c14d","name":"noble-device","description":"A Node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","dist-tags":{"latest":"1.4.1"},"versions":{"0.1.0":{"name":"noble-device","version":"0.1.0","description":"A node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"~0.3.0"},"gitHead":"a9531d53858155c665706b4c7c422aca767e907d","_id":"noble-device@0.1.0","_shasum":"218bf24360c9ba24d33385829dcb9246dc1a5a5d","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"218bf24360c9ba24d33385829dcb9246dc1a5a5d","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-0.1.0.tgz","integrity":"sha512-7h0yrT6z2x8AdlTeWsy5Rz5JKb1uPRDUHdCwNrAs/ZE8nLhsWxYkgr5dj6XtO0SImNr8fvKD2ttxYHDESzEygg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0iINsMvRoKCFirCL8Oo6uQ3LxjRnOfK0VNe48PKgp7gIgKz03D4vUQL6RcQMX5bsDkFXwe0+3oz3cUhe/t4ltJWQ="}]}},"0.1.1":{"name":"noble-device","version":"0.1.1","description":"A node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"~0.3.0"},"gitHead":"5c683775fafd1fa10f044e0bd22ab95a8afa378c","_id":"noble-device@0.1.1","_shasum":"07ff04038c3f30c961e22d1592c3ccaa2a02cddf","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"07ff04038c3f30c961e22d1592c3ccaa2a02cddf","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-0.1.1.tgz","integrity":"sha512-APxE9UNTH9aKbFdAJ7Jju0P3EtAttPiRhI8p3t5kJnPT1I1Pbj2XFfzwAU39gH59uBg9COfiaeehOWzC+feJyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCntUhh3YFOb+t938q8FeYUqiCbuIyVYipFYGQRxe+nKgIgGzgpfd0+C91CgoUvG+BsVh9KGPDSE9ievAgIinIJGf0="}]}},"0.1.2":{"name":"noble-device","version":"0.1.2","description":"A node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"~0.3.0"},"gitHead":"3fee4dfcf24fa1736e408949a0d3fdca20bef744","_id":"noble-device@0.1.2","_shasum":"a911f772c87df038b18efc225ee24b64ee582727","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"a911f772c87df038b18efc225ee24b64ee582727","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-0.1.2.tgz","integrity":"sha512-VHbQQGxJ3ZqcW2j8QBHZ9pxGPNAp5iGn5Z0kgHJqbPwpBYzRTrYrzuhEpSiw1qlqgWge7c11Ln5F/ajLBMvdDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICawSd0HDIGC8jaeXn6oqgpsgLek2ai+fkro4JuAyePaAiEA3Du3ih5aWHbAlwAPyGMa+SB2ci+PF39uXbEZK/cJ1tM="}]}},"0.1.3":{"name":"noble-device","version":"0.1.3","description":"A node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"~0.3.0"},"gitHead":"9ec2e3e9480911a7584f33a1a4417d8d493b68a9","_id":"noble-device@0.1.3","_shasum":"9f307556672b4b66ca025215fcfd2d8f3674034b","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"9f307556672b4b66ca025215fcfd2d8f3674034b","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-0.1.3.tgz","integrity":"sha512-5T34764c4sXirgU/fEU0/PSEXmaAV75wNxqeVj9pky7CvS5IwAiyA7LOGJ+wwW9/q/aVftEkps8NHMBajdiskg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIED6VSoA7a7C2GpaXRJE9ttrTMu2q2oEzfFp/p0rdlWCAiEAp4Cn+ftNTJyptNowVS3RRjlJBlO+gWadawMNEYXPq2E="}]}},"1.0.0":{"name":"noble-device","version":"1.0.0","description":"A node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"~0.3.0"},"gitHead":"12e02198b89a20c27567f084da0d6d7b3a0a95f8","_id":"noble-device@1.0.0","_shasum":"9e3ef15bf2faa4c371bf6f398f0a36a9bd16d51b","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"9e3ef15bf2faa4c371bf6f398f0a36a9bd16d51b","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-1.0.0.tgz","integrity":"sha512-jG3MCRLNSVf7BpgSYqRwwJZS8iEvSF6inLB2FCzZMYCqaGk2Zj725Pk9GOBWYL2tBzkwIGT8VKkFLdGUaaKk6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTWm1HL6plS8Ng7Tdxxs+RdsM6QuumDw8eyiU+14QQRQIhAJx8qkXf0iYrA48saWC1ibCAm64mHOGuqHe8DNjxw0ja"}]}},"1.0.1":{"name":"noble-device","version":"1.0.1","description":"A node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"~0.3.0"},"gitHead":"ff074ef20af8073fd9c62f41fb5242b20e7c165f","_id":"noble-device@1.0.1","_shasum":"9a0e0a49675623f8fa1c593e74a04b79dd71c624","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"9a0e0a49675623f8fa1c593e74a04b79dd71c624","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-1.0.1.tgz","integrity":"sha512-72tj15qUw0MmXOLJLv8z4FYvnHCwR8vLquZ4x//9ZUzxFuSFJ3T4RdAz1rcUDzMuvA6dEqwtCZNerH70LZ2KuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9Yt1o+SnhgD/HhpAs2deZXO7A6wup9uwgismuuZEiLQIhAMbL3z1eoVHP1M0sEvH3MyoswxxkDjrj4vlkXbm/LL69"}]}},"1.0.2":{"name":"noble-device","version":"1.0.2","description":"A node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"~1.0.0"},"gitHead":"05fbae4bce8c2220b090ef68778ebca92e9de8dd","_id":"noble-device@1.0.2","_shasum":"71f9efa1d396bfa4cb35b1ef2799688a30211a6c","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"71f9efa1d396bfa4cb35b1ef2799688a30211a6c","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-1.0.2.tgz","integrity":"sha512-ZqGMZrhmA72+WhNXKCnvecm0OqBpNZ5StHTNk4F0siS2ClksiFgi8ajji19Ezd4+suVOCikh31wob3kAFjgvsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEuqX3cFnyk0mbO5QvpSBF2Z+T13ThCAQaTv9rT0H1b7AiEAqYnHpK5Pmxqh+seWxOWtIbjZ5oSlMWIIuuCmWX9m7J4="}]}},"1.0.3":{"name":"noble-device","version":"1.0.3","description":"A node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"~1.0.0"},"gitHead":"4b1f32c75ab47bdd25279f0e43e563287eafe714","_id":"noble-device@1.0.3","_shasum":"c246eef4b5f6c28b675bcaa67e6e21388e1e099b","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"c246eef4b5f6c28b675bcaa67e6e21388e1e099b","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-1.0.3.tgz","integrity":"sha512-UGDpOzI17flww71XnPVzLmZhu7THb6kdxcMkmuHdUFVLJ8ZKaxDQEcGo1zW+H+g41mxZ0phxnuj4Ygc1v6wbEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6juDo2jRHotDMLQC3DqDOCg1yPJPXsTlG7Alz+MeTZQIgFsb+M+XD0VW4WWErl/IeQX1WHKY+Q2imkUqXDat2k6I="}]}},"1.1.0":{"name":"noble-device","version":"1.1.0","description":"A node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"^1.1.0"},"gitHead":"3d41b4c64b86078da3fafb7abb4dded7671d6096","_id":"noble-device@1.1.0","_shasum":"2f7dba9ee0762187b0903ae3194efceaa05037d2","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"2f7dba9ee0762187b0903ae3194efceaa05037d2","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-1.1.0.tgz","integrity":"sha512-Ngfj9Zw+kXKv8sz6WlF3GGrOzXlRyvQZFKm/BnJm3s+my5f7sxeSOzgfBsSStxUE4Zzv6iGwuSWlHh63qdo8Cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHp/PkrLlguiGhW/fgMxWbZ9KWSPCkMCa91vc5OiSXziAiBt6oWb0qwFyDyC2AQHkgpyTroSh2HJy16oWKtF7rvJrw=="}]}},"1.2.0":{"name":"noble-device","version":"1.2.0","description":"A Node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"~1.3.0"},"gitHead":"bd1f50f8467e2c875d1900ee88933fcd15bdb7f1","_id":"noble-device@1.2.0","_shasum":"f766f98790f80b92bfe59ca330e48362d7fa9b43","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"f766f98790f80b92bfe59ca330e48362d7fa9b43","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-1.2.0.tgz","integrity":"sha512-+g3aja/1sWdYeGFrnXnRs5Vcz3QXoSQHp3w+qEwkrbq9bbvnaH+RvfSXZvMfkmtX2pPGmYiChWlkh9Y9KCwJmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGw6ACJVJQWuyUvleYvQBsBvwi605i/3NUSx2OwIxbmAIhALtqwSuyrR1m1DDLba7h1oqZx1fprQ869mXGaj5reWbI"}]},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/noble-device-1.2.0.tgz_1454977378956_0.040567682357504964"}},"1.3.0":{"name":"noble-device","version":"1.3.0","description":"A Node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js lib/. examples/.","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"~1.3.0"},"gitHead":"d0464b2f3522399a9e28024220e3be99fb0e707a","_id":"noble-device@1.3.0","_shasum":"b80a28fb77dbeb008e0c7038e41051d49adb3b2b","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"b80a28fb77dbeb008e0c7038e41051d49adb3b2b","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-1.3.0.tgz","integrity":"sha512-l4yi9IA4IyN6LGTac41/j1jIos95tE20l6lBVQ5NKnsrLM148wjt4xd1vHKVqx3jGy/RZc66OtEuPW+mT2Qtkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHvhfiwmFSGs9+UhcYUHhKcUGNidaNJktLfTm2lU2+MiAiAXpzKAobMqyjoUIWeGfMtixP/pQZJmxVu7vDKQzPkrcQ=="}]},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/noble-device-1.3.0.tgz_1456793863722_0.2118275621905923"}},"1.4.0":{"name":"noble-device","version":"1.4.0","description":"A Node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js lib/. examples/.","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"^1.6.0"},"gitHead":"455904fc5d5a8de10bf08ed0280ec65e73c982bc","_id":"noble-device@1.4.0","_shasum":"07107be9b76ac6a7ba6e27b98522d6e15f0ec33f","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.6","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"07107be9b76ac6a7ba6e27b98522d6e15f0ec33f","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-1.4.0.tgz","integrity":"sha512-bXJC9oP+wPgVUIOc5JPle3QogBxjekSSOrtmjarAl/uwZ8wSsZWXJ4UDyolWro1DQDuGrMVYI3V0+YwwAnUK/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEeNkNGZSwGdbRRD72eEsg9cNtGR0tTq1ACzr5df2N0fAiB+t9GhMkO9lRDX0jOvDTb4KrEkFYOLpSsMYBvOXwyHjQ=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/noble-device-1.4.0.tgz_1468163331922_0.1326222827192396"}},"1.4.1":{"name":"noble-device","version":"1.4.1","description":"A Node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble","main":"index.js","scripts":{"pretest":"jshint *.js lib/. examples/.","test":"mocha -R spec test/."},"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"homepage":"https://github.com/sandeepmistry/noble-device","devDependencies":{"jshint":"~2.4.4","mocha":"~1.17.1","should":"~3.1.3","async":"~0.7.0"},"dependencies":{"noble":"^1.7.0"},"gitHead":"3607ad23d72ebc64de8f356eaec7d60223ea0282","_id":"noble-device@1.4.1","_shasum":"673a6e703cdd962e7339d4a940efcb3491805ee3","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.6","_npmUser":{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"},"maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"dist":{"shasum":"673a6e703cdd962e7339d4a940efcb3491805ee3","tarball":"https://registry.npmjs.org/noble-device/-/noble-device-1.4.1.tgz","integrity":"sha512-GDhMaIWJ36PCTnqEBCLEt0f9Dkuoj19F1iN/LaLnt+vKvwGaSkklNWixWKcPaAVZcRZJDxCUhJ/WRHMj6jR1VQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxFa0idf8Ci1Qt/vLK7hNeiu+e0ab5+RBWDWEzKswkCAiEA3c0rF+YXSGCtc38d0o5kaPQi2Crazkkf2COFlP0zNXg="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/noble-device-1.4.1.tgz_1474140833859_0.8644369123503566"}}},"readme":"noble-device\n============\n\nA Node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, using [noble](https://github.com/sandeepmistry/noble)\n\n## Install\n```\nnpm install noble-device\n```\n\n## Usage\n\nTake a look at the [Tethercell](https://github.com/sandeepmistry/node-tethercell/) and [unofficial LightBlue Bean](https://github.com/jacobrosenthal/ble-bean) devices for examples, but this is how you make a basic device:\n\n```javascript\nvar NobleDevice = require('noble-device');\n\nvar YOUR_THING_SERVICE_UUID = 'xxxxxxxxxxxxxxxxxxxxxxxx';\nvar YOUR_THING_NOTIFY_CHAR  = 'xxxxxxxxxxxxxxxxxxxxxxxx';\nvar YOUR_THING_READ_CHAR    = 'xxxxxxxxxxxxxxxxxxxxxxxx';\nvar YOUR_THING_WRITE_CHAR   = 'xxxxxxxxxxxxxxxxxxxxxxxx';\n\n// then create your thing with the object pattern\nvar YourThing = function(peripheral) {\n  // call nobles super constructor\n  NobleDevice.call(this, peripheral);\n\n  // setup or do anything else your module needs here\n};\n\n// tell Noble about the service uuid(s) your peripheral advertises (optional)\nYourThing.SCAN_UUIDS = [YOUR_THING_SERVICE_UUID];\n\n// and/or specify method to check peripheral (optional)\nYourThing.is = function(peripheral) {\n  return (peripheral.advertisement.localName === 'My Thing\\'s Name');\n};\n\n// inherit noble device\nNobleDevice.Util.inherits(YourThing, NobleDevice);\n\n// you can mixin other existing service classes here too,\n// noble device provides battery and device information,\n// add the ones your device provides\nNobleDevice.Util.mixin(YourThing, NobleDevice.BatteryService);\nNobleDevice.Util.mixin(YourThing, NobleDevice.DeviceInformationService);\n\n// export your device\nmodule.exports = YourThing;\n```\n\nNow to use `YourThing` you must use one of the discover functions [documented below](#discovery-api) which will find your device(s) and pass instances of your object to their callback where you must call `connectAndSetUp`.\n\n```javascript\nvar YourThing = require('YourThing');\n\nvar id = '<your devices id>';\nYourThing.discoverById(function(yourThingInstance) {\n\n  // you can be notified of disconnects\n  yourThingInstance.on('disconnect', function() {\n    console.log('we got disconnected! :( ');\n  });\n\n  // you'll need to call connect and set up\n  yourThingInstance.connectAndSetUp(function(error) {\n    console.log('were connected!');\n  });\n\n});\n```\n\nIt doesn't do much yet, let's go back and add to our Device definition (right before ``module.exports``)\n\n```javascript\n// you could send some data\nYourThing.prototype.send = function(data, done) {\n  this.writeDataCharacteristic(YOUR_THING_SERVICE_UUID, YOUR_THING_WRITE_CHAR, data, done);\n};\n\n// read some data\nYourThing.prototype.receive = function(callback) {\n  this.readDataCharacteristic(YOUR_THING_SERVICE_UUID, YOUR_THING_READ_CHAR, callback);\n};\n```\n\n\nNow in our connect and setup we can:\n\n```javascript\n    yourThing.send(new Buffer([0x00, 0x01]), function() {\n      console.log('data sent');\n    });\n\n    yourThing.receive(function(error, data) {\n      console.log('got data: ' + data);\n    });\n```\n\nOptionally, if you need to do some device setup or close something down before disconnect, you can override those functions:\n\n```javascript\nYourThing.prototype.connectAndSetup = function(callback) {\n  NobleDevice.prototype.connectAndSetup.call(this, function(error) {\n    // maybe notify on a characteristic ?\n    this.notifyCharacteristic(YOUR_THING_SERVICE_UUID, YOUR_THING_NOTIFY_CHAR, true, this._onRead.bind(this), function(err) {\n      callback(err);\n    });\n  }.bind(this);\n};\n\nYourThing.prototype.onDisconnect = function() {\n  // clean up ...\n\n  // call super's onDisconnect\n  NobleDevice.prototype.onDisconnect.call(this);\n};\n```\n\n\n### Discovery API\n\n__Discover All__\n\n``` javascript\nfunction onDiscover(yourThingInstance) {\n  // called for all devices discovered\n}\n\nYourThing.discoverAll(onDiscover);\n```\n\n__Stopping a Discover All__\n\n```javascript\n\nYourThing.stopDiscoverAll(onDiscover);\n```\n\n__Discover a single device__\n\n``` javascript\nYourThing.discover(function(yourThingInstance) {\n  // called for only the first device discovered\n});\n```\n\n__Stopping a Discover__\n\n```javascript\n\nYourThing.stopDiscover(onDiscoverCallback);\n```\n\n__Discover with Filter__\n\n``` javascript\nYourThing.discoverWithFilter(function(device), {\n  // filter callback for device,\n  //   return true to stop discovering and choose device\n  //   return false to continue discovery\n\n  return true; // or false\n}, function(yourThingInstance) {\n  // called for only one device discovered that matches filter\n});\n```\n\n__Discover by ID__\n\n``` javascript\nvar id = \" ... \"; // id of device we want to discover\n\nYourThing.discoverById(id, function(yourThingInstance) {\n  // called for only one device discovered\n});\n```\n\n","maintainers":[{"name":"sandeepmistry","email":"sandeep.mistry@gmail.com"}],"time":{"modified":"2022-06-21T11:16:45.629Z","created":"2014-12-22T01:46:53.446Z","0.1.0":"2014-12-22T01:46:53.446Z","0.1.1":"2015-01-24T22:22:37.851Z","0.1.2":"2015-01-29T01:04:19.967Z","0.1.3":"2015-02-19T02:05:16.943Z","1.0.0":"2015-03-24T23:59:32.286Z","1.0.1":"2015-04-13T23:48:12.220Z","1.0.2":"2015-05-16T16:57:13.757Z","1.0.3":"2015-07-29T23:49:40.676Z","1.1.0":"2015-08-18T17:41:22.701Z","1.2.0":"2016-02-09T00:23:01.829Z","1.3.0":"2016-03-01T00:57:47.066Z","1.4.0":"2016-07-10T15:08:52.436Z","1.4.1":"2016-09-17T19:33:56.845Z"},"homepage":"https://github.com/sandeepmistry/noble-device","keywords":["noble","BLE","Bluetooth Low Energy","Bluetooth Smart","Bluetooth 4.0"],"repository":{"type":"git","url":"https://github.com/sandeepmistry/noble-device.git"},"author":{"name":"Sandeep Mistry","email":"sandeep.mistry@gmail.com"},"bugs":{"url":"https://github.com/sandeepmistry/noble-device/issues"},"license":"MIT","readmeFilename":"README.md","users":{"stavman":true,"nivea":true,"j3kz":true,"necanicum":true,"jsyzqt":true}}