Hello,
I made the PS3 remote plugin. The plugin eat the remote battery because the blutooth link is always active. One reader point me I must call blutooth API function WIDCOMM API CBtIf::SetSniffMode(btaddress); but how to do this ?
Thanks.
Call WIDCOMM API CBtIf::SetSniffMode(btaddress); from Python
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: Call WIDCOMM API CBtIf::SetSniffMode(btaddress); from Python
Do you have found any header files or similar descriptions for the WIDCOMM API? If it is a kind of DLL, ctypes would be the way to go.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Re: Call WIDCOMM API CBtIf::SetSniffMode(btaddress); from Python
I've just posted a new version of the PS3 remote plugin to the original thread that uses SetSniffMode/CancelSniffMode/ReadLinkMode. It appears to be working well.
http://www.eventghost.org/forum/viewtop ... a&start=15
I've also added quite a few things that I wanted. Have a look at it and see what you think (the code needs a major clean-up though).
http://www.eventghost.org/forum/viewtop ... a&start=15
I've also added quite a few things that I wanted. Have a look at it and see what you think (the code needs a major clean-up though).