Enable emcute_mqttsn with WIFI on ESP32 board

Hi, I am working with an ESP32 board. I am trying to make the example code emcute-mqttsn work under WIFI network. What I did so far is I just replace the gnrc network module with lwip (see paho-mqtt makefile as a reference). I did connect to the wifi network, but I cannot configure the IPV6 to set up a global prefix as I did when using gnrc module. And the ipv4 mode just didn’t work at all. Can anyone please give me a hint on how to approach this problem? Thank you!