NodeMCU automatic reset

Hi I am now to these I bought a new NodeMCU board.I made a code for it and uploaded successfully but everytime the board is powered.The blue led in wifi chip begins to glow for sometime and switches off.The code I made links the board with blynk app.The app shows the board is disconnected and connects after some seconds this goes on.I uploaded the different part of the code individually and checked the code.In void main I entered the command pinmode.That makes that problem it makes blue leds in wifi chip glow without stopping.And also my long code makes the NodeMCU reset. help me and thanks in advance.

Sorry what I asked was a stupid question Basically you need to call Blynk.run() as frequently as you may expect messages (actions) arriving from the Phone App.

I saw in a post