I'm trying to create a custom probe with passing device_property("FirstAddress") into a ros_command by concatenating the string. I'm struggling to correctly escape double quotes into the concatenated result.
Escaping with a leading \ I get a "parse error" as well as with putting the double quotes into a set of single quotes ('"') with three double quotes in a row (""") It seems to stop right after the first of these sets.
Haven't found anything useful in the manual and forum yet...
Assuming "FirstAddress" is 192.168.250.7 the command I like to achive would be this:
Code: Select all
:put [$myfunction 192.168.250.7]
Code: Select all
ros_command(concatenate('"':put [$myfunction ", device_property("FirstAddress"),"]'"'))
Thanks!
-Chris