Commit b7287ddc authored by Mikhail Vataleu's avatar Mikhail Vataleu
Browse files

Update config.json; Update README.md;

parent de9a972f
......@@ -123,4 +123,14 @@ sudo update-ca-certificates
#### `Command Disallowed (0xc)` while app is running on VESTA Gateway
By default, the application uses `hci0` interface which can be locked by other snap.
To avoid this issue disable or remove other snaps which use `hci0` interface.
\ No newline at end of file
To avoid this issue disable or remove other snaps which use `hci0` interface.
#### `NobleDevice.connectAndSetUp` callback sometimes not invoke
* Reset Thingy power supply.
* Restart daemon, run:
```bash
snap stop rigado-node-hello-world
snap start rigado-node-hello-world
```
\ No newline at end of file
{
"app": {
"sendInterval": 2000
},
"ble": {
"hciDeviceNum": 0,
"deviceMAC": "*"
......
......@@ -19,8 +19,7 @@ const SEND_GATEWAY_CONNECTED = 'GATEWAY_CONNECTED';
const SEND_DEVICE_CONNECTED = 'DEVICE_CONNECTED';
const BROKER_CONNECT_INTERVAL = 3000;
const DISCOVER_RESTART_TIMEOUT = 5000; // XXX: workaround for noble-device issue
const SENDING_INTERVAL = 1500;
const DISCOVER_RESTART_TIMEOUT = 5000; // XXX: Workaround for noble-device issue
const APPLICATION_START_TIMEOUT = 5000; // XXX: Wait HCI devices on system startup
let brokerConnectTaskId = null;
......@@ -239,7 +238,7 @@ const startSendingTask = (config) => {
sendHealth(config.mqtt);
}
}
}, SENDING_INTERVAL);
}, config.app.sendInterval);
};
const stopSendingTask = () => {
......
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