def test_signal(self, signal):
    ' Enable / disable test signal '
    if (signal == 0):
        self.warn('Disabling synthetic square wave')
        try:
            self.wifi_write(']')
        except Exception as e:
            print(('Something went wrong while setting signal: ' + str(e)))
    elif (signal == 1):
        self.warn('Enabling synthetic square wave')
        try:
            self.wifi_write('[')
        except Exception as e:
            print(('Something went wrong while setting signal: ' + str(e)))
    else:
        self.warn(('%s is not a known test signal. Valid signal is 0-1' % signal))
Enable / disable test signal
def test_signal(self, signal):
    '  '
    if (signal == 0):
        self.warn('Disabling synthetic square wave')
        try:
            self.wifi_write(']')
        except Exception as e:
            print(('Something went wrong while setting signal: ' + str(e)))
    elif (signal == 1):
        self.warn('Enabling synthetic square wave')
        try:
            self.wifi_write('[')
        except Exception as e:
            print(('Something went wrong while setting signal: ' + str(e)))
    else:
        self.warn(('%s is not a known test signal. Valid signal is 0-1' % signal))