Call WIDCOMM API CBtIf::SetSniffMode(btaddress); from Python

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
Thierry
Plugin Developer
Posts: 13
Joined: Sun Nov 25, 2007 9:50 pm

Call WIDCOMM API CBtIf::SetSniffMode(btaddress); from Python

Post by Thierry » Sun Oct 12, 2008 7:48 am

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.

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Call WIDCOMM API CBtIf::SetSniffMode(btaddress); from Python

Post by Bitmonster » Mon Oct 20, 2008 7:29 pm

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!

magao
Posts: 21
Joined: Sun Nov 09, 2008 11:06 am

Re: Call WIDCOMM API CBtIf::SetSniffMode(btaddress); from Python

Post by magao » Mon Nov 10, 2008 5:09 am

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).

Post Reply