Commit c3d598cc authored by root's avatar root
Browse files

monitor_battery y network monitor examples update

parent b0ed69bd
......@@ -154,7 +154,7 @@ if __name__ == '__main__':
tx_slave_tc = tx_slave_tc + m.get_crc(tx_slave_tc)
#FRAME TA-MODULE
address_ta = [2,3,4]
address_ta = [2]
tx_ta = []
for i in range(0,len(address_ta)):
tx_ta.append(struct.pack('B',address_ta[i])+'\x03\x00\x01\x00\x02')
......
......@@ -83,7 +83,7 @@ def print_values(result):
if __name__ == '__main__':
m=modbus.Modbus()
address_sensor = [2,3,4]
address_sensor = [1,2]
txs = []
for i in range(0,len(address_sensor)):
txs.append(struct.pack('B',address_sensor[i])+'\x03\x00\x10\x00\x06')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment