]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_ctfws/commitdiff
Expunge cjson in favor of sjson
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Sat, 29 Jul 2017 20:29:13 +0000 (16:29 -0400)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Mon, 31 Jul 2017 11:59:13 +0000 (07:59 -0400)
README.rst
init2.lua

index 67ddd36acb820738dfd64c2c478d3b7c806e6fd6..dcb3ccd3c7ae37546dcadbc7c76289d769b150a7 100644 (file)
@@ -55,7 +55,6 @@ NodeMCU modules used
 Please ensure that your build of NodeMCU supports the following modules:
 
 * ``bit`` (for LCD)
-* ``cjson``
 * ``cron``
 * ``file``
 * ``i2c`` (for LCD)
@@ -63,6 +62,7 @@ Please ensure that your build of NodeMCU supports the following modules:
 * ``net``
 * ``node``
 * ``rtctime``
+* ``sjson``
 * ``sntp``
 * ``tmr``
 * ``wifi``
index fea49b4a654f768b330aab7fc1f26fabda3686b8..8623c4f114bc3e68cf9178b4e645e833b8acaf9b 100644 (file)
--- a/init2.lua
+++ b/init2.lua
@@ -6,7 +6,7 @@ dofile("compileall.lc")
 -- notably, the LCD address
 local ctfwshw = {}
 if file.open("ctfws-misc.conf","r") then
-  local conf = cjson.decode(file.read() or "")
+  local conf = sjson.decode(file.read() or "")
   if type(conf) == "table"
    then ctfwshw = conf
    else print("ctfws-misc.conf malformed")