So, I’ve proven to myself that one can send raw TCP data with
sendHubCommand(). Whatever data I pass to
sendHubCommand() is delivered unmodified, which is as raw as it get. This is how my app talks to Mochad X10 gateway in this demo:
The question now is how to receive anything back. Currently, the hub sends back empty response, which is enough to confirm that data was sent successfully, but it would be much more useful if I could get data back from the socket.
I know that
sendHubCommand() takes an undocumented
options argument, so the question is if there’s a magic option that can make the hub send reply back to the app?