Add more logging

This commit is contained in:
Koen Kanters 2018-04-21 12:45:22 +02:00
parent fc9a0be1e9
commit 5b52defe9e

View File

@ -34,6 +34,13 @@ class Controller {
}
handleZigbeeMessage(message) {
if (message.type == 'devInterview') {
logger.info('Connecting with device, please wait...');
}
if (message.type == 'devIncoming') {
logger.info('New device joined the network!');
}
if (!message.endpoints) {
// We dont handle messages without endpoints.
return;