-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation: Obtaining WiFiClient from ArduinoCloud object. #314
Comments
Hi @Frenzoid, ArduinoIoTCloud/src/ArduinoIoTCloud.h Line 105 in 451d57d
and then |
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. |
Hi Frenzoid, Thank you for raising this issue. A lot of libraries requiere to use wifi objects to send data. Im currently trying to use HTTPClient on ESP8266 and ESP32 and they requiere to declare the connection object to use. Normally you would use the WiFiClient object but with ArduinoCloud there is no documentation on how to access this and examples other than diggin up in git and forums. Regards |
@Isaacbg84 see answer above. Using the method above you will get the Client ArduinoCloud is using to connect to the mqtt broker, if you need to keep ArduinoCloud and another connection, to be used with HTTPClient, running i would declare a new WiFiClient object instead of using the ArduinoCloud one. |
Got it. I was trying to use ArduinoIoT WiFiConnectionHandler object for this, but your answer makes a lot more sense. Thank you. |
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.
The text was updated successfully, but these errors were encountered: