Error 1101 unable to get a response with the specified url

Place this near (or at) the top of your code

#define RELAY_ON LOW

And where you want to switch a relay on, use (for relay 1)

digitalWrite(Relay1, RELAY_ON);

And where you want to switch the relay off

digitalWrite(Relay1, !RELAY_ON);
1 Like