Home automation

I have Arduino mega2560 , esp8266 and 8 channel relay
I want to make operating 8 channel relay with my android mobile through esp8266 please help to create program code
or please give me source code for it I m tired searching lots of websites but still I didn’t get any solution hope u all reply as soon as possible.

Hi,

The only solutions we offer here are helping people learn how to write their own code.

I suggest you get one part working at a time. Like the relay board from Mega. Then other parts. LAST, put the parts together.

Use Blynk.
The fastest way to do it.