etisab 10 tahun lalu
induk
melakukan
03cf904f68
2 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 3 1
      BUILD/init.lua
  2. 1 0
      proto_api_keys/yotouch/apikey.txt

+ 3 - 1
BUILD/init.lua

@@ -1,5 +1,6 @@
 --[[ ASSUMPTIONS
 --[[ ASSUMPTIONS
 yorecipient.txt exists
 yorecipient.txt exists
+apikey.txt exists and contains a valid API key
 ]] 
 ]] 
 
 
 DEBUG = true
 DEBUG = true
@@ -24,7 +25,8 @@ tmr.alarm(STARTUP_DELAY_TIMER, 3000, 0, function ()
     print("Yo debug: " .. msg)
     print("Yo debug: " .. msg)
   end
   end
 
 
-  -- yo recipient file must exist
+  debugMsg('Booting button ' .. node.chipid())
+
   yoRecipientExists = file.open('yorecipient.txt', 'r')
   yoRecipientExists = file.open('yorecipient.txt', 'r')
   YO_RECIPIENT = file.read()
   YO_RECIPIENT = file.read()
   file.close()
   file.close()

+ 1 - 0
proto_api_keys/yotouch/apikey.txt

@@ -0,0 +1 @@
+0c6ac771-71fa-420f-810c-2853989a8ca6