parameters: (self)
docstring: Reads the device's weight value, and pushes that value to the frontend.
docstring_summary: Reads the device's weight value, and pushes that value to the frontend.
docstring_tokens: Reads the device s weight value and pushes that value to the frontend .
function: def _take_measure(self):
          """Reads the device's weight value, and pushes that value to the frontend."""
  
          if self._is_reading:
              with self._device_lock:
                  self._read_weight()
                  self._check_last_weight_time()
                  if self.data['value'] != self.last_sent_value or self._status['status'] == self.STATUS_ERROR:
                      self.last_sent_value = self.data['value']
                      event_manager.device_changed(self)
          else:
              time.sleep(0.5)
function_tokens: def _take_measure ( self ) : if self . _is_reading : with self . _device_lock : self . _read_weight ( ) self . _check_last_weight_time ( ) if self . data [ 'value' ] != self . last_sent_value or self . _status [ 'status' ] == self . STATUS_ERROR : self . last_sent_value = self . data [ 'value' ] event_manager . device_changed ( self ) else : time . sleep ( 0.5 )