How to read a value if a topic contains just a value.

How to read a value based on the variable name (if the topic contains more variable names).

How to read the value from a json.

 

 

To write to a point when sending single values:

  1. Go to the Funcs app
  1. Create a new func called pointWriteSimpleVal
  1. Copy the code to the right and paste into the func and save it.
  1. That’s it, now we recommend to disable/enable the MQTT connector.

(pt, val) => do

if (val != null) do

if (val.isDict) return val->writeVal.toStr

else return val.toStr

end

return "NULL"

end