hubAction call sending nothing from device type

I had similar issues with a Raspberry Pi device.

To get it to work at all, I had to:

  • 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.