fixed wifi connectivity issue: avoid serial port overflow