Code that connecting the nodemcu with arduino mega

Hello. I am opti. Can someone help me on the code that connecting nodemcu with arduino? I had faced problems on that. Thank you.

why do you want to connect nodemcu to arduino?

i don’t know. someone inform me that there should be a connection between them before i start with the IOT

you can directly connect your Nodemcu to cayenne Adding a New Device using MQTT