The code that I provided above is from the section in the linked webpage that shows a single switch, titled "Single Device Control with Latching Switch".
We are just realizing that neither the transmitter nor receiver modules seem to have come with antennas... can you confirm? That could be an issue (lol).