Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread Alexie
g) is the incorrect thinking > > -Fernando > > > > -- > > Open WebMail Project (http://openwebmail.org) > > > > > > -- Original Message --- > > From: ML > > To: gambas-user@lists.sourceforge.net > > Sent: Thu, 30 Jun

Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread ML
going to use byte[] array > then byte[0] = 2 is the equivalent. > Using escape (like HTML encoding) is the incorrect thinking > -Fernando > > -- > Open WebMail Project (http://openwebmail.org) > > > -- Original Message ----------- > From: ML > To: gambas-

Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread nando_f
0300 Subject: Re: [Gambas-user] Serial Port issues and events. > Alexie, > > Not really. This is my first attempt at a binary-exchange over serial in > Gambas. Can't also find out the old G3 examples that might have existed > about this and my web searches were unsuccessful. >

Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread ML
Alexie, Not really. This is my first attempt at a binary-exchange over serial in Gambas. Can't also find out the old G3 examples that might have existed about this and my web searches were unsuccessful. So, if you could point me to some example code to read a Byte[], I'll be grateful. My attempts

Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread Alexie
Do you have a better/working example? Using multiple serialport works fine in Gambas (we use it in DomotiGa). You can read byte for byte, or read it into an array (latter one i recommend). Then you just loop through the array until you find STX/ETX characters ;-) 2016-06-30 12:17 GMT+02:00 zxMarce