def start(self):
self.publish_properties()<EOL>self.subscribe_topics()<EOL>gc.collect()<EOL>self.set_state("<STR_LIT>")<EOL>while True:<EOL><INDENT>try:<EOL><INDENT>if not utils.wlan.isconnected():<EOL><INDENT>utils.wifi_connect()<EOL><DEDENT>self.publish_data()<EOL>self.mqtt.check_msg()<EOL>idle()<EOL>sleep(<NUM_LIT:1>)<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>self.set_state("<STR_LIT>")<EOL>self.mqtt.disconnect()<EOL><DEDENT><DEDENT>
publish device and node properties, run forever