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.

 

 

How to write to a point when sending single values.

Go to the Funcs app

Create a new func called pointWriteSimpleVal

Copy the code to the right and paste into the func and save it.

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