Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
CHANGELOG.txt
LICENSE
README.md
init.lua
main.lua
network_message.lua
parameters-device.dist.lua
parameters.dist.lua
wifi-init.lua

README.md

#lm393 light detector on NodeMCU

more on https://koscis.wordpress.com/tag/wc-project/

##main Main app. Bases on lua boilerplate https://github.com/bkosciow/nodemcu_boilerplate. It broadcast message on state change (light on/off).

Set your AP credentials in parameters.lua

It also respond to ask for state

{
    "protocol": "iot:1",
    "node": "computer",
    "event": "state",
    "targets": [
        "light-wc"
    ]
}

with current light state.

{
    "chip_id":183164,
    "protocol":"iot:1",
    "node":"light-wc",
    "targets":["ALL"],
    "event":"",
    "response":"detect.light"
}