Abigor
1
Hi,
I'm trying to figure out how to extract the value from following message:
"a100=16974\x03"
The value I want is the digits after the "=", but excluding the "\x03". The value can be 0 - 65535 (2byte)
I've tried to use $substring(payload,5,9) but of course this isn't suitable since there can be 1 up to 5 digits after the "=" sign.
If the \x
will always be there you could do a split on the =
then a split on the \x
Or determine the position of = and / by using the build in indexOf() function
Perhaps you have to add or subtract a 1.
Abigor
4
Thank you, that worked great
system
Closed
5
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.