I have recently bought my BlueSmirf Silver bluetooth module. It all works great apart from its responses do not contain a NULL terminator. This is a big issue for me as it means I am struggling to read data correctly as I cannot rely on the timeout of the arduino libraries.
I am asking for anyones help in fixing this issue. The bluesmirf will reply something like "CMD\r\n" when it should be replying "CMD\r\n\0". Please can someone help me get around this problem, have any of you had to parse strings that contain no NULL terminators?
Ok great maybe you can help me out then, because you can identify weather or not a NULL terminator is being sent by just having a look and calling the "read()" method of a "Stream". I can assure you that no NULL terminator is being sent by the bluetooth device, the only way it is terminating its self is by sending a carriage return then a new line. So how can I parse this using the "readString" function inside the arduino?. Also because it sends no NULL terminator the timeout will not work correctly...