Louis authored on27/10/2021 22:41:20
Showing2 changed files
1 1
Binary files a/build/synocam_home_switch.pbw and b/build/synocam_home_switch.pbw differ
... ...
@@ -2,6 +2,8 @@ var Clay = require('pebble-clay');
2 2
 var clayConfig = require('./config');
3 3
 var clay = new Clay(clayConfig);
4 4
 
5
+var messageKeys = require('message_keys');
6
+
5 7
 var sid;
6 8
 var status;
7 9
 
... ...
@@ -218,6 +220,7 @@ Pebble.addEventListener('webviewclosed', function(e) {
218 220
 
219 221
   // Get the keys and values from each config item
220 222
   var dict = clay.getSettings(e.response);
223
+  console.log("server is "+dict[messageKeys.Server]);
221 224
 
222 225
   // Send settings values to watch side
223 226
   Pebble.sendAppMessage(dict, function(e) {