Use Digi WR21 serial port to control a relay? (

Using Digi WR21
R110 RS232 Relay

-I can get the relay to work using python on a PC
-I can control the relay over the web using the Digi WR21 RealPort driver.

-BUT…I CANT run python directly on the WR21 to run the relay

Anyone have experience doing this?’s_Guide

You will likely need to check out the Digi ESP SDK as well.


If you have configured the serial port to the correct speed you have saved all

you can open python in interpretor mode from the command line

with these 3 lines should be able to pass data to the serial port

Serial0 = open(“asy/00”, “w”)

with the correct text sequence this should operate your releay