How to use WifiClient in esp32


I see the example program already connected wifi network. How to use mqtt and webserver function? Because of the wifi object has been used.


You can use wifi library.
When a device acquires an IP address, call mDashStart() function.


How to use the following object after embed mDash core?

WiFiClient espClient;
PubSubClient client(espClient);

Any example for reference?


mDash is just a library, so use it like any other library.
Think about that the other way around.
Build your sketch using WiFiClient and PubSubClient.
Then, add mDash to it - that could be done by sticking a single line with mDashStart() call into a right place.

Does that make sense?