def radio_test_ook():

    radio.init()

    try:
        radio.modulation(ook=True)
        while True:
            print("Switch 1 ON")
            radio.send_payload(enc_1on, REPEATS)
            radio.standby()
            time.sleep(1)

            print("Switch 1 OFF")
            radio.send_payload(enc_1off, REPEATS)
            radio.standby()
            time.sleep(1)
    finally:
        radio.finished()
Repeatedly test switch 1 ON then OFF
dataset/ETHPy150Open whaleygeek/pyenergenie/src/energenie/radio2_test.py/radio_test_ook