Hi,
I would like to ask about the change since version ROS 7+.
I used a script to detect the temperature on version ROS 6 and today I found out that it no longer works on 7.
Previously, a value was returned directly, and now an array is returned.
.id=*e;name=temperature;type=C;value=43
I tried editing the script and using regex
([0-9][0-9]+[.][0-9])|([0-9][0-9])
but it doesn't work for me. I always get only true returned
--
:local temp [/system health get 1]
:local msg \
"$temp"
/iot mqtt publish broker="XXX" topic="stat/temp/" message=$msg
--
Does anyone know the solution.
Thanks a lot