feat: battery percentage changed event (#126)

New "change_battery" event is triggered when the battery percentage changes. Has current battery percentage and charging state as object param.

Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
This commit is contained in:
Aliyss Snow
2020-04-06 05:36:03 +02:00
committed by GitHub
parent 1780436b93
commit 93a617336a
3 changed files with 23 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ exports.Events = {
QR_RECEIVED: 'qr',
DISCONNECTED: 'disconnected',
STATE_CHANGED: 'change_state',
BATTERY_CHANGED: 'change_battery'
};
/**