How read button state on esp32 and send it to mit app?

hi, I am trying to use esp32 with 2 buttons and read those state, then send it to mit app inventor, to app, and make some changes with this,
I already tried to figure out how to make it with bluetooth, asked on this forum, but without success

Now thought about wi-fi connection to use it and send data by POST GET commands.
I need send data from esp32 to mit app not other way(there is a lot of examples to turn on led, or servos). But this is other side of transfer.
I appreciate some advice to send data from esp32 (via wi-fi) to mit app.