mydevice.read(0)


dle

Recommended Posts

I'm using the latest version of DF. when I tried to read all the bytes from a LORD microstrain wireless device

mydevice.read(0)

It seem like the script above just try to read 0 byte instead of read everything on the port. Thus, DF will stop responding. 

Link to comment
Share on other sites

I verified from the source code and specifying 0 in read() on a port, whether serial or Ethernet, simply returns the contents of the buffer.  Even if it was trying to read from the port,, DF shouldn't stop responding, but instead the function would timeout when the function failed.  Perhaps you can provide a sample document showing whatever you are seeing?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.