My app sends NMEA strings terminated with [CR]+[LF]. The NMEA standard specifies this format (example is heading info from a gyro compass): '$HEHDT,2.0,T*2D[CR][LF]'. At the receiving end the string is discarded as incomplete. How do I append and send these characters?
Sending is straight forward with only a few lines of code (Object is Cp1tx: TIdUDPServer;):
...
Cp1tx.Active:= true;
Cp1tx.Broadcast(InStr,8051,'',IndyTextEncoding_8Bit);
Cp1tx.Active:= false;
...
Btw, I am using Delphi 10.1 Berlin.
InStr. Are you trying to ask about literal characters?