Happens sporadically can work 20 / 40 / even 60 times then locks up. I have read other forum posts and found that GPIO 2 / 0 and 15 need pull-up resistors, will try this and see if cures the problem, I have doubts on this.
People seem to think it was only on Nodemcu! Nope code I built is with the new Arduino IDE esp version.
Any thoughts?
Dan