Obviously I’m missing something with hubAction…
Wireshark shows no packets from the hub to the target host…
Attempting to send some raw packets to my squeezebox server.
I’ve run it from the app as well as the IDE, zip nada…
Is the below not the correct syntax for this call???
Argggg…
The end point understands telnet, so I’m not sure exactly how to send the command shown.
In a nut shell I’m emulate this:
telnet 192.168.1.210 9090
"00:04:20:17:b2:04 power 1"
You can do hubactions from a device, see my generic camera devicetype for examples.
The key is device.deviceNetworkId, properly formatted.
If you don’t care about getting a response (and with raw commands, you won’t) then it should work…
I’ve had issues with a virtual device sending commands, but once you install it as a working device in the IDE then attach the IDE to that device it works.
Ask support to update my firmware. I had an ancient version which didn’t do POST/GET. The iOS app insisted that the firmware was up to date, when it was not.
Set the deviceNetworkId manually in the devices pane of the IDE, I’m not sure why it didn’t work from the device itself.
Then I saw packets from the hub with wireshark + a sniffer.
Still having problems with unsubscribing from a previously-used IP/port combination, however. When I deleted the device in desperation, requests sent by the new device instance would be routed to the old instance. I guess the code is missing an unsubscribe somewhere. To avoid that, I’ve been bumping the IP or port number – but that’s not really a sustainable solution.
Well freaking SOB!, that was the issue @JamesH .
Jacking the hex networkID into the actual device in the IDE worked.
Thanks for that, I was ready to give up.
It’s really too bad that all this tribal knowledge isn’t documented somewhere…
It used to be writeable, no doubts about it, but a lot of small but annoying changes were pushed into the framework last month, so I would’t be surprised if that is one of them.