LAN DS18B20 WEB Temperature Monitor 1 meter Cable
www.WEB-Relays.com
www.Facebook.com/KMtronic

Python read SDM230 Modbus Single Phase Energy Meter with Pymodbus

    import struct import binascii import time from pymodbus.constants import Endian from pymodbus.payload import BinaryPayloadDecoder from pymodbus.payload import BinaryPayloadBuilder from struct import * from pymodbus.client.sync import ModbusTcpClient import logging logging.basicConfig() log = logging.getLogger() #log.setLevel(logging.DEBUG) host = ‘192.168.1.204’ port = 502 client = ModbusTcpClient(host, port) client.connect() for x in range(0, 300): rr = client.read_input_registers(0x0000,2,unit=1) assert(rr.function_code . . .

Read More

KMtronic LAN WEB 8 Channel Relay board