Split device communication and BLE handling into separate files

This commit is contained in:
Victor Hagelbäck 2021-02-20 07:55:26 +01:00
parent 53e67fb487
commit 436ed6b759
5 changed files with 405 additions and 311 deletions

8
plejd/constants.js Normal file
View file

@ -0,0 +1,8 @@
const COMMANDS = {
TURN_ON: 'Turn on',
TURN_OFF: 'Turn off',
DIM: 'Dim',
TRIGGER_SCENE: 'Trigger scene',
};
module.exports = { COMMANDS };