Dev (#6) - cwiid get_mesg gets slow after a minute and overloads (#121) - Message List

cwiid get_mesg gets slow after a minute and overloads
 unsolved

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.

  • Message #24441

    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.

    • Message #24442

      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.

Attachments

No attachments created.