From: Nathaniel Wesley Filardo Date: Sat, 29 Jul 2017 20:29:13 +0000 (-0400) Subject: Expunge cjson in favor of sjson X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=1220c405f14618b85097f9c70a26ba72ecdc7c01;p=acmetensortoys-esp-lua_ctfws Expunge cjson in favor of sjson --- diff --git a/README.rst b/README.rst index 67ddd36..dcb3ccd 100644 --- a/README.rst +++ b/README.rst @@ -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`` diff --git a/init2.lua b/init2.lua index fea49b4..8623c4f 100644 --- 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")