@eric, besides Particle Cloud functions, does the Bluz support TCP/UDP communications via the gateway?
It is on the list!
The underlying code basically supports it already, the Particle data travels through the Socket class. I think I even put in there that it should support two sockets.
However, it is just a matter of finishing the HAL libraries and then making the gateways support it more generically.
So, like many other features, bluz was designed to support it but we put it on the back burner for a moment to get things out the door. Once we get into a more regular release cycle, we can start to finish some of these things off.