Use the write(b) method
This method will allow a response to be written back to Digi Remote Manager.
Write the given bytes() or bytearray() object, b, and return the number of bytes written (always equal to the length of b in bytes).
After finishing writing a response, close() should be called to complete the transaction.
Note All data from the request should have been read before issuing a write.
request.write(b)