Controlling the relay remotely
We still have to see how to control the relay remotely, so for this, let's go back to the PubNub console that we created earlier.
Now, connect the relay
channel just as you did earlier with the other channels. We don't want to receive the data here, but we will send some data.
For this, we will use the message field, where you can type a message and send it to our board. Simply send the following message to turn the relay on:
You can immediately see and hear that the relay is on. To turn it off again, type the following message:
Congratulations, you can now control your relay from anywhere in the world!