Appreciate for your your help on this.
I always have this problem with my Linkit One board, after a while it will just hang saying "Serial Port Received Error". Even I tried to disable the serial, it also have the same problem.
1) I running the RCSwitch() for detecting my sensors (pin 2).
2) I also running the LWiFi to connect to my server.
3) Plug in using USB port to power and also the see the serial message.
The RCSwitch() is using the interrupt on pin 2
mySwitch.enableReceive(0); // Receiver on interrupt 0 => that is pin #2
If I just run the RCSwitch without enable the WiFi (as show below), it seen like don't have the hang issue, not sure why?
//LWiFi.begin(); // Turns on the Wi-Fi module.
I need both feature inside the linkIt one board, what is the reason? Possible to help me on this?