UT330BUI/model/UT330.py
def delete_data(self):

        """Deletes the temperature, humidity, and pressure data from the
        device"""

        # The delete command
        self._buffer = [0xab, 0xcd, 0x03, 0x18, 0xb1, 0x05]

        self._buffer[5], self._buffer[4] = modbusCRC(self._buffer[0:4])

        # Write the command
        self._write_buffer()

        # Now get the response data from the buffer
        self._read_buffer(7)

        # Check the return code shows the data was correctly deleted
        if [171, 205, 4, 24, 0, 116, 181] != self._buffer:
            raise IOError("Error! Delete data returned error code.")
Deletes the temperature, humidity, and pressure data from the
        device
Deletes the temperature, humidity, and pressure data from the
device
Deletes the temperature humidity and pressure data from the device
def delete_data(self):
        self._buffer = [0xab, 0xcd, 0x03, 0x18, 0xb1, 0x05]
        self._buffer[5], self._buffer[4] = modbusCRC(self._buffer[0:4])
        self._write_buffer()
        self._read_buffer(7)
        if [171, 205, 4, 24, 0, 116, 181] != self._buffer:
            raise IOError("Error! Delete data returned error code.")
def delete_data ( self ) : self . _buffer = [ 0xab , 0xcd , 0x03 , 0x18 , 0xb1 , 0x05 ] self . _buffer [ 5 ] , self . _buffer [ 4 ] = modbusCRC ( self . _buffer [ 0 : 4 ] ) self . _write_buffer ( ) self . _read_buffer ( 7 ) if [ 171 , 205 , 4 , 24 , 0 , 116 , 181 ] != self . _buffer : raise IOError ( "Error! Delete data returned error code." )
Deletes the temperature, humidity, and pressure data from the
device
Deletes the temperature humidity and pressure data from the device
"""Deletes the temperature, humidity, and pressure data from the
        device""" # The delete command # Write the command # Now get the response data from the buffer # Check the return code shows the data was correctly deleted
self