Dev (#6) - cwiid get_mesg gets slow after a minute and overloads (#121) - Message List
I noticed that after a minute or 2 of the my app running, the response time between a button press on the wiimote and receiving a signal is much slower but when i look at my hcidump, the data is coming in at regular speeds and actually very accurately responsive. I want to flush whatever it is that is causing the problem. the variable or i don't know what.
i'm also getting overloading messages when i'm looking at the messages received from the wiimote. is it reasonable to think they are both connected?
thanks for any help you can spare.
It sounds like messages are piling up in the queue, which happens if you aren't checking them fast enough. Either check them more often, enable fewer messages, or use another interface (callback or state) to get status.dsmith02/09/09 17:50:50 (4 years ago)
I fixed the problem by using the enable command at the top of the loop, then the get message command,then my personal code, and at the end of the loop, before is started over again, i used the disable command and the process starts over again.
response time never decays and i have never had any problems with it.ramy02/09/09 17:58:07 (4 years ago)