pylab_ml.common.common.strcall
- strcall(self, command, value=None, typ=None, mqttcheck=False)[source]
- make a call from the command:
result = common.strcall(tcc, ‘regs.HW_ID.read()’) result = common.strcall(self, ‘smu.voltage=5.3’ , mqttcheck=True)’ result = common.strcall(self, ‘smu.blabla()’, 4.7, mqttcheck=True)’
needs the the logger from self
- Parameters:
command (string)
value (int/float/list, optional) – DESCRIPTION. The default is None.
typ (None/'set'/'get') – DESCRIPTION. If the command an mqtt-command, than you have coice if it is settable or gettable
mqttcheck (True/False, optional) – DESCRIPTION. The default is False. Check if the command is in the mqtt_list. If not, the command will not be execute
- Returns:
myresult
- Return type:
the result from the call