ESP8266 as Master, Arduino MEGA as slave

Where ESP as master is very important is when you are monitoring a remote location rather than using a local rover. With ESP as master you have the power of OTA updates etc which is not available when using the ESP as a slave. ESP’s as masters will reconnect to the internet much more readily than an Arduino as master as they were developed by Espressif to do exactly that.