Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release/3.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Baba committed Oct 14, 2016
2 parents c781a03 + f1887f2 commit 2460a6f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ $ npm run build
will generate ES5 js files.

# Revision History
* 3.0.3
- Fix an issue where BLE scanning stopped after connecting to a BLE peripheral

* 3.0.2
- Fix an issue where node events weren't occasionally transmitted to configuration nodes

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-asakusa_giken",
"version": "3.0.2",
"version": "3.0.3",
"description": "Node-RED nodes for Asakusa Giken Devices",
"license": "MIT",
"repository": {
Expand Down
9 changes: 9 additions & 0 deletions src/ble.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ export function start(RED) {
if (state === 'poweredOn') {
if (!isScanning) {
RED.log.info(RED._('asakusa_giken.message.start-scanning'));
noble.on('scanStop', function () {
setTimeout(function () {
noble.startScanning([], true, (err) => {
if (err) {
RED.log.info(RED._('asakusa_giken.errors.unknown', {error: err}));
}
});
}, 2500);
});
noble.startScanning([], true);
isScanning = true;
}
Expand Down

0 comments on commit 2460a6f

Please sign in to comment.