def METHOD_NAME(self, turnOn):
    """
    This method is exported as RPC and can be called by connected clients
    """
    if turnOn:
        payload = b'1'
    else:
        payload = b'0'
    print("Serial TX: {0}".format(payload))
    self.transport.write(payload)