sendHubCommand seems to have a very high latency in delivering the request to the chosen device.
E.g. the time from running the code below from actually receiving that TCP message on the device takes 3 seconds at best and up to 7-8 seconds sometimes.
Is this expected?
This is the code: