arduino-libraries / ArduinoIoTCloud

Home Page:https://app.arduino.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation: Obtaining WiFiClient from ArduinoCloud object.

Frenzoid opened this issue · comments

Ref to: https://forum.arduino.cc/t/getting-wificlient-from-arduinocloud-object/973385

Is there a way to get the WiFiClient object that ArduinoCloud creates when connecting to WiFi?

Best regards.

Hi @Frenzoid,
you should try to call ArduinoCloud.getConnection()

inline ConnectionHandler * getConnection() { return _connection; }

and then getClient() on the returned ConnectionHandler Object https://github.com/arduino-libraries/Arduino_ConnectionHandler/blob/98db5e61bfde16e8f0be1aca008749cc106a7745/src/Arduino_WiFiConnectionHandler.h#L41

Hi @Frenzoid do you need more help or we can close it ?

Hello,

My issue is solved, but after talking with some peeps in the forums I've reopened so that devs can track this issue ( missing documentation/clarification regarding this function ).

Yet, if you want to close it, feel free to do so :)

Best regards.