necessary/possible to flush BT buffer?
Hi--I'm a newbie to both Python and Series 60 development, so pardon me if this is a stupid question.
I'm working on a Bluetooth GPS application, and would like to receive location updates from the GPS at least 3 times a minute, if not more often. In my experimentation so far, it seems like the position that my Python script is displaying is lagging far behind my actual current position.
I'm wondering if the GPS is continually sending to the phone, and the phone is building up a larger and larger buffer, so that the position I display is increasingly out of date.
When using socket.recv(), does the phone buffer all incoming data? If so, is there any way that I can flush the buffer and get the newest data coming in through the socket, so that I don't end up with out-of-date locations?
I'm developing on a 6620 running the initial release of Python for Series 60.
Thanks for any help.