@staticmethod<EOL><INDENT>def create_from_response_pdu(resp_pdu):<DEDENT>
write_single_coil = WriteSingleCoil()<EOL>address, value = struct.unpack('<STR_LIT>', resp_pdu[<NUM_LIT:1>:<NUM_LIT:5>])<EOL>value = <NUM_LIT:1> if value == <NUM_LIT> else value<EOL>write_single_coil.address = address<EOL>write_single_coil.data = value<EOL>return write_single_coil<EOL>
Create instance from response PDU.

        :param resp_pdu: Byte array with request PDU.
        :return: Instance of :class:`WriteSingleCoil`.