This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import os | |
import time | |
import paho.mqtt.client as mqtt | |
from paho.mqtt.client import MQTT_ERR_SUCCESS, MQTT_ERR_NO_CONN | |
DEVICES_PATH = "/sys/bus/w1/devices" |