def METHOD_NAME(self):
    try:
        if not self._connection or not self._connection.is_open:
            context = {
                "Error code": "TRANS-WRTZGTE-02",
                "serialConnection": str(self._connection),
            }
            self.logging_serial("Error", "write_to_zigate port is closed!", _context=context)
            return False
        if self.serial_send_queue.qsize() > 0:
            encode_data = self.serial_send_queue.get()
            self.logging_serial("Debug", "serial_write_to_zigate Sending: %s" %str(encode_data))
            nb_write = self._connection.write(encode_data)
            if nb_write == len(encode_data):
                self._connection.flush()
            else:
                # Error, missing 
                context = {
                    "Error code": "TRANS-WRTZGTE-01",
                    "EncodedData": str(encode_data),
                    "serialConnection": str(self._connection),
                    "NbWrite": nb_write,
                }
                self.logging_serial("Error", "write_to_zigate", _context=context)
        return True
    except TypeError as e:
        # Disconnect of USB->UART occured
        self.logging_serial("Error", "write_to_zigate - error while writing %s" % (e))
        return False