My function while have a problem. When I comment this line doesn't have error in monitor serial, but, when I use all function show this error on monitor serial.
void windvelocity(){
speedwind = 0;
counter = 0;
attachInterrupt(0, addcount, RISING);
unsigned long millis();
long startTime = millis();
while(millis() < startTime + period) {
}
}
When I make upload this function to wemos, the Serial Monitor print this
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld
See Question&Answers more detail:os