I am attempting to use a GET command to read a status symbol from my irrigation system. I am attempting use a UDP binding for the item. My .items is as follows:
Contact Droplet_Zone1 “Frontyard” {udp="<[toasterbox:5005/sn?sid=1:1000:REGEX(*)]"}
The Regex expression seems to yield either null values when using a wildcard expression (*) . I can use the http binding as well with the same results:
Contact Droplet_Zone1 “Frontyard” {http="<[http://toasterbox:5005/sn?sid=1:1000:REGEX(*)]"}
I tried adjusting the REGEX expression to have ‘.*’ instead and I receive this INFO log in Karaf.
20:11:45.070 [INFO ] [.internal.RegExTransformationService] - the given regular expression ‘^.*$’ doesn’t contain a group. No content will be extracted and returned!
BTW, the value returned by the server php call is just a boolean.
http://toasterbox:5005/sn?sid=1 -------> returns a value of ‘0’ (for now)