|
Re: serial port access: msg#00085lang.smalltalk.squeak.beginners
On Sat, Oct 14, 2006 at 08:26:03PM -0300, Juliano Mercantil wrote: > I'm a newbie in Squeak, and i'm in a desperate need to use a serial port > to comunicate with an external device. > I've found the System-Serial Port, but i really need to see a working code > example. > Can anyone help? I just need to send some bytes and read the answer. SerialPort looks like a very simple and straightforward class. Just from reading the code, I would suspect that the usage is: p := SerialPort new initialize. p openPort: 0. p nextPutAll: aStringOrByteArray. p readByteArray. p close. Note that I have never used it. I just read the instance methods and their comments. -- Matthew Fulmer
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | serial port access, Juliano Mercantil |
|---|---|
| Next by Date: | Re: serial port access, Ned Konz |
| Previous by Thread: | serial port access, Juliano Mercantil |
| Next by Thread: | Re: serial port access, Ned Konz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |