]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_core/commitdiff
Add deprecation comments to some util functions
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Tue, 17 Jan 2017 06:41:11 +0000 (01:41 -0500)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Wed, 18 Jan 2017 02:18:02 +0000 (21:18 -0500)
net/nwfmqtt.lua
net/nwfnet-sntp.lua

index f6511185ad68b8db2ba10c392986c351b3cc5da8..e17e81b6d1dc04a8b6582405b0fd532c0aeebddc 100644 (file)
@@ -36,6 +36,7 @@ function self.connect(m,cf) -- make a connection with parameters from json file
   secure = (secure == 1) or 0
   return m:connect(broker,port,secure,0)
 end
+-- XXX deprecated in favor of new upstream cron module
 function self.heartbeat(m,topic,tq,period) -- set up lw&t and periodically heartbeat using tq until cancelled
   m:lwt(topic,"dead",1,1)
   local handle
index 8adcd03d7ba35d7b90c01513b2463faa556e02b7..059f7d1822fb987b5fc481c248e2dd6dd2f980ab 100644 (file)
@@ -17,6 +17,7 @@ local function dosntp(server)
   )
 end
 
+-- XXX deprecated in favor of new cron upstream module
 local function loopsntp(tq,period,server)
   local function f() dosntp(server); tq:queue(period,f) end
   tq:queue(period,f)