SerialDataEvent.lenght = 0 ?????

11 views
Skip to first unread message

Bashar A.Asaad

unread,
Oct 12, 2016, 8:29:56 AM10/12/16
to Pi4J
Hello all

SerialDataEvent.lenght = 0 ????? i must put this code 

if (SerialDataEvent.length() != 0 )

in my code to check if there are a data or not on my port Is ...... ...... This right waaaay  ???????

why th lisner called if there are no data what this biiiiiiiiiiiiiiiiiiiiiiiiiiig wrong i hope to anybody answer me ??????

Reply all
Reply to author
Forward
0 new messages