From this page you communicate with the Broker: cloudmqtt.com
Connect: Establish connection to the Broker
Subscribe starts automatically to the Topic: codifythings/lightlevel
Publish: Sends LOW or HIGH to the subscribed topic. OPEN and CLOSE controls the system. If OPEN the red light is turned on if dark and visa versa. If CLOSED no change can happen.
This program build on the MQTTSensor.ino and MQTTActuator.ino programs for Arduino implementet on NodeMCU as sensor and WemosD1R2 as actuator.
The program sensors the light and turns on or off a light depending on that. At the same time the WEB part makes it possible to control if the light may be changed.
Disconnect: Disconnecting
Publish
Open and Close for Sensor Reactions (The Red Light)