How to make sure the communication buffers don overrun?
When communicating over TCP Sockets or via RS-232 it can occur that the communication buffers overrun. This typically happens when sending commands and neglecting the feedback in 2-way communication. The communication buffers are only cleared when read out. Simply implementing the onData callback function and reading the data will avoid this from happening.