GladysProject/Gladys

View on GitHub
server/services/bluetooth/lib/events/bluetooth.scanStart.js

Summary

Maintainability
A
0 mins
Test Coverage
const logger = require('../../../../utils/logger');

/**
 * @description When the Bluetooth starts scanning.
 * @example
 * bluetooth.on('startScan', this.scanStart);
 */
function scanStart() {
  logger.debug(`Bluetooth: start scanning`);
  this.scanning = true;

  this.broadcastStatus();
}

module.exports = {
  scanStart,
};