After Particle.connected() return true, Can I call TCPClient/TCPServer to communicate with cloud without authentication again?Or TCPClient/TCPServer is base socket?

After Particle.connected() return true

  1. Can I call TCPClient/TCPServer to communicate with cloud without authentication again?
  2. Is the communicate as safe as Particle.function()?

The Particle cloud requires you to communicate via the encrypted standard features exposed by the Particle object. TCPServer/TCPClient are by default not encrypted and hence can’t be used to directly talk to the Particle cloud.

However as soon you get WiFi.ready() == true you can use TCP to communicate with any counter party that accepts TCP.

1 Like