Skip to main content

You are here

Use of UARTPLug

3 posts / 0 new
Last post
Harry
Use of UARTPLug

Hi everybody, The UARTPlug is said to add a Serial port. What should I do be able to use Available,Read and ReadBytes with tbe UARTPlug as I can with the normal serial device? May be it is very simple, but I cannot find it.

Harry

martynj

@Harry - this Weblog is a good starting point.

Harry

@martinj

Sorry, but for me it is not very helpfull. Using that code and translating it, I get a number of error messages saying e.g. that class 'UartPlug' has no member named: send. The same applies to receive and stop.

So I looked further and found http://jeelabs.net/pub/docs/jeelib/classUartPlug.html. Now I am totally confused, e.g. read() returns an integer????

Does somebody have a complete example, that really works, to write a string to the serial port and read data from that port, if available?

Please, help me!

Harry

Premium Drupal Themes by Adaptivethemes