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
#!/usr/bin/python | |
import minimalmodbus | |
import paho.mqtt.client as mqtt | |
import paho.mqtt.publish as pub | |
# RS485 serial settings | |
DEVICE="/dev/ttyUSB0" | |
SLAVE=2 | |
DEBUG=False | |
FUNCODE=4 |