I have changed the log command but I didn't receive empty strings...
I think, the error depends on length of string, but I don't know why...
When I send long string, no error...
Log("Msg:" & msg & ".")
Start Program
Connecting...
** Activity (main) Resume **
Sub Socket1_Connected
Msg:$UploadLimit:165,150,145,120,156,150,145,140,155,145,150,110,170,155,155,145,165,149,*.
Msg:$UploadNowLimit:165,120,156,140,155,110,155,155,165,*.
Msg:$UploadTemp:155,120,157,156,153,109,155,155,150,076,121,949,372,346,307,*.
Msg:$UploadValve:011100110,40*.
Msg:$UploadSettings:1,15,0*.
$SetLimit:01165*
$SetLimit:02149*
Msg:$LimitAcknowledge:01165*.
Msg:$LimitAcknowledge:02149*.
Msg:$UploadNowLimit:165,120,156,140,155,110,155,155,165,*.
Msg:$UploadNowLimit:165,120,156,140,155,110,155,155,165,*.
Msg:$UploadTemp:155,120,158,157,153,109,154,155,150,076,121,949,339,302,306,*.
Msg:$UploadValve:011100010,70*.