Commit 76d557b2 authored by Spencer Williams's avatar Spencer Williams

define constants

parent 4b14838d
......@@ -4,6 +4,8 @@ const NOBLE_HCI_DEVICE_ID = 1;
const DEFAULT_DEVICE_NAME = "Thingy";
const DISCOVER_RESTART_TIMEOUT = 5000; // XXX: Workaround for noble-device issue
const APPLICATION_START_TIMEOUT = 5000; // XXX: Wait HCI devices on system startup
const APP_STATE_RUNNING = 'running';
const APP_STATE_STOPPING = 'stopping';
let Thingy = null;
let connectedThingy = null;
......@@ -256,7 +258,7 @@ module.exports = function(RED) {
// remove listeners since they get added again on deploy
noble.removeAllListeners();
});
}
};
RED.nodes.registerType("noble-connect", NobleConnectNode);
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment