def create_from_request_pdu(pdu):
        """ Create instance from request PDU.

        :param pdu: A response PDU.
        """
        _, address, value = struct.unpack('>BHH', pdu)

        value = 1 if value == 0xFF00 else value

        instance = WriteSingleCoil()
        instance.address = address
        instance.value = value

        return instance
Create instance from request PDU.

        :param pdu: A response PDU.