what is the function setEvents
- This topic has 3 replies, 2 voices, and was last updated 9 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Hello again, i’m really sorry to ask another question, but I don’t really see what the function void setEvents(mDotEvent* events); do, they use it in exemple but they juste do dot->setEvents(&events); with the commentary // attach the custom events handler , and i don’t really understand… Somoene knows pls?:)
Events fire when different things happen in the MAC layer – TX done, TX error, RX done, RX error, join accept, etc, etc. The event handler is a way for the application to be notified of important things like those and others without constantly polling the library.
Cheers,
Mike
I don’t really understand, is it essential for the program?
You don’t need to inject a custom events handler. A default one is always there. It’s just available in case you want to override it and do custom things when different events fire.
Cheers,
Mike