I am using GetComPortEx and I am looking for a chr(13) as the terminator.
e=hs.OpenComPortex(1,"9600,n,8,1",0,"iButtonCb.txt","main",c hr(13))
The device I am talking to sends a string of 16 characters to Homeseer. I see only the first 8, and then on the next call to the iButtonCb script, it reads the last 8 characters. This shouldnt happen as far as I understand. I am using the line:
data = hs.GetComPortData(1)
in my callback script. Is there an 8 character limit? Do I need to define the variable Data to be bigger? Anyone have any insight into this?
And one more question. The help files say that mode 0 returns each character, and mode 1 returns the whole string, but then it goes on to say that it looks for the chr(13) above, if specified, and waits to call the iButton.txt script until it sees the terminating character. Any insight there ? Does mode not matter if you specify the terminating character?
e=hs.OpenComPortex(1,"9600,n,8,1",0,"iButtonCb.txt","main",c hr(13))
The device I am talking to sends a string of 16 characters to Homeseer. I see only the first 8, and then on the next call to the iButtonCb script, it reads the last 8 characters. This shouldnt happen as far as I understand. I am using the line:
data = hs.GetComPortData(1)
in my callback script. Is there an 8 character limit? Do I need to define the variable Data to be bigger? Anyone have any insight into this?
And one more question. The help files say that mode 0 returns each character, and mode 1 returns the whole string, but then it goes on to say that it looks for the chr(13) above, if specified, and waits to call the iButton.txt script until it sees the terminating character. Any insight there ? Does mode not matter if you specify the terminating character?
Comment