GladysProject/Gladys

View on GitHub
server/services/bluetooth/lib/utils/bluetooth.constants.js

Summary

Maintainability
A
0 mins
Test Coverage
const VARIABLES = {
  PRESENCE_STATUS: 'BLUETOOTH_PRESENCE_STATUS',
  PRESENCE_FREQUENCY: 'BLUETOOTH_PRESENCE_FREQUENCY',
};

const PRESENCE_STATUS = {
  ENABLED: 'enabled',
  DISABLED: 'disabled',
};

const TIMERS = {
  SCAN: 5000,
  CONNECT: 5000,
  DISCOVER: 5000,
  READ: 2000,
  WRITE: 2000,
  PRESENCE: 60000,
};

const PARAMS = {
  CONNECTABLE: 'connectable',
  LOADED: 'loaded',
  MANUFACTURER: 'manufacturer',
};

module.exports = { VARIABLES, PRESENCE_STATUS, TIMERS, PARAMS };