ESP is a wonderful module – it can connect to wifi networks, create a webserver (accepting connections) and is very very cheap ! Its a lot more than this – just google it and you’ll find out. The communication is made through Serial communication using AT commands. You can