How to receive data automatic?


Recommended Posts

So, I'm assuming you mean the device is going to send data async, without polling? If so, you can just do something like this:

while(1)
   try
	  private string datain = device.mydevice.readuntil(13)
	  // do parsing here
   catch()
	  delay(0.05)
   endcatch
endwhile

Link to comment
Share on other sites

Archived

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