When configuring exactly the same through the Paper UI everything works flawlessly. The documentation of the globalcache binding covers manual thing creation at the end but doesn’t mention the parameters for 2 way communication and the end of message delimiter. These I figured out from the json config files when configured though paper ui.
The manually configured Global cache serial thing loads fine shows up correctly in the Paper UI with conrrect parameters and item link. But when sending a command I get this error message
2017-10-22 13:24:25.064 [ERROR] [e.internal.command.CommandSendserial] - Execute ‘sendserial’ failed on thing 000C1EE0D3BE at 10.0.1.193: errorCode=N/A, errorMessage=Timed out waiting on response queue for message
Not changing anything about the items definition or anything else of the config but configuring the global cache thing through Paper UI makes it work flawlessly
Therefore my assumption is this is a Global Cache binding bug, unless I’m overlooking something
One thing… Did you try removing the double quotes from the boolean enableTwoWay1 config parameter. I can see in the jsondb for my flex that booleans are not quoted.
BTW, thanks for pointing out the miss in the documentation for manual configuration of the two-way serial feature. I’ll fix that once we get this sorted out.
That may not be the issue, but it’s worth a try, as I’m not quite sure how booleans are handled in the manual Thing definition.
The other thing you could do that would be very helpful… If you have the Rest Documentation addon installed (it’s under the Misc category), try putting the below URL in your web browser for the PaperUI thing creation, and for the manual thing creation. This would show us if there’s anything different in the Thing configs between the two methods. Note that you might want to install a JSON beautifier in your browser to help make the JSON more readable. I use JSONView in Chrome.
Opened an issue about this. I’ll push a fix once it gets resolved. In the meantime, you should be fine if you make the above change to your .things file.