Communication Through WiFi Between Two NodeMCU (esp8266)

Guys i'am new to NodeMCU. i tried some small projects and work great. Now i have a idea on a project using NodeMCU. I need to use one NodeMCU as station mode(WiFi hotspot) and another NodeMCU as a client.

Then i need to send the sensor's values and strings between the two NodeMCU.

But i don't have much experience in esp8266, iam totally confused, is there any library or anyone tried please share the code here.it will help so many beginners.

  • how i use NodeMCU as a station mode.
  • how i send variables through the wifi to the another NodeMCU.
  • how i receive the data on the client NodeMCU.

anyone please help me.