src/Door_accessory.js
changeset 11 a70d948427d3
parent 3 67f6a1e7c40a
child 22 00185499ed12
--- a/src/Door_accessory.js	Tue Jan 30 09:22:57 2018 -0600
+++ b/src/Door_accessory.js	Tue Jan 30 16:47:34 2018 -0600
@@ -41,10 +41,10 @@
         this.pyshell.on('message', function (message) {
             console.log(message);
             switch(message) {
-            case 'doorbell_on':
+            case 'doorbell on':
                 doorbellOnCallback();
                 break;
-            case 'doorbell_off':
+            case 'doorbell off':
                 doorbellOffCallback();
                 break;
             }