Neuron Older Models M20x
Hi, I have a M20x that I want to replace with a new device, is the M203 a direct swap, just a newer model number? I use a custom Python program that reads and sets using requests. Some of my procedures:
def read_button(button): try: Status = urllib.request.urlopen("http://" + myself + "/rest/di/" + button).read() jsondata = json.loads(Status.decode("utf-8")) x = jsondata["value"] except Exception as e: # print('Read button fail, no button called',button) x = True return x def set_relay(circuit, onoff): data = dict(value=onoff) url = "http://" + myself + "/rest/relay/" + circuit + "/" content = requests.post(url, data=data, allow_redirects=True)
Should I expect that all the relays, di, do, ai, ao access will be the same? I guess what I'm asking is, should I expect that my program will run the same on the M203 as it did on the M20x?
And separately, if I changed to the Patron devices, would the evok system be accessable in the same way as I've accessed it with my python code? Would it be an easy change over?