How do you send data from esp32 or esp8266 by wifi to mit app?

Hi, I am trying for some time to send data from esp32/esp8266 to mit app by wifi and unfortunately without success.
There are some finished examples but only for one way communication, from mit app or web server (eg.ledOn/, ledOff/) to MCU.
However I didn't find any satisfied example that let to receive data from MCU (eg. analogRead in time interval) and send them to mit app inventor app.

I appreciate any advise to make that communication working.

There is a lot of information about the ESP32/ESP8266 in this Community.

I am looking for wifi data transfer from mcu to mit app, not bluetooth.