How to use WifiClient in esp32

#1

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

#2

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

#3

How to use the following object after embed mDash core?

WiFiClient espClient;
PubSubClient client(espClient);

Any example for reference?

#4

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?

#5

See https://github.com/cesanta/mDash/tree/master/examples/Minimal