Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

event.length() == 0 ???????? #272

Closed
DoctorDooom opened this issue Aug 30, 2016 · 4 comments
Closed

event.length() == 0 ???????? #272

DoctorDooom opened this issue Aug 30, 2016 · 4 comments

Comments

@DoctorDooom
Copy link

if event.length() == 0 why the event accured ????

Imust do the following
if(event.length() != 0){
// do something
}
else
return ;

@savageautomate
Copy link
Member

Which event? Serial , GPIO?

@DoctorDooom
Copy link
Author

DatalistnerEvent

@DoctorDooom
Copy link
Author

SerialDataEvent

@aleksandrmozgovoi
Copy link

I also have this problem on SerialDataEvent.
I noticed this problem on ttyUSB0.
There are no problems with ttyUSB1 or ttyUSB2.
I'm sure that this one comes in 22 bytes, but length = 0.
How to fix it?
Sometimes for a while the reboot helps, but this is not a solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants