how to send data from mobile to nodemcu

in our project we need to send the data from android mobile to nodemcu.

android mobile first reads the csv file and sends the data to nodemcu.

we dont know how to do this as we are new to this

plz help me to do soo...

How much data are you looking to send, in terms of how many lines and how many fields per line?

Do you have access to anything you can use as a web server? The Node MCU will be quite slow at reading data, where as an android mobile will try to push it as fast as it can. You might also hit multi-tasking problems. E.g. if the NodeMCU is busy doing a sensor reading then it is not going to be waiting and watching for a file arriving. To do that, you will have to write code to replicate a lot of web server and operating system functions, such as interrupts and possibly flow control.

I'm wondering if you could use a web server as an intermediate. Use the phone to upload the data to a website, then have the NodeMCU pull the data as and when it can.

Set up either phone or NodeMCU up as WiFi hotspot, connect the two together that way. You can now send data over http - use a POST request from your phone, with the data you want to transfer in the body.