Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 4.1.43 (from 4.1.40) results in missing definition for SetServiceState #427

Open
MarFanNL opened this issue Jul 10, 2024 · 1 comment
Labels

Comments

@MarFanNL
Copy link

Hi,

I upgrade the InTheHand.Net.Bluetooth package from 4.1.40 to 4.1.43.
After that the line :
bdi.SetServiceState(BluetoothService.SerialPort, true);
is giving an error

Error CS1061 'BluetoothDeviceInfo' does not contain a definition for 'SetServiceState' and no accessible extension method 'SetServiceState' accepting a first argument of type 'BluetoothDeviceInfo' could be found (are you missing a using directive or an assembly reference?)

downgrading to 4.1.40 solves the issue.

Is there something changd or broke ?

Regards,
MarFan

@peterfoot
Copy link
Member

With the recent refactoring work the SetServiceState method only exists in the win32 dll of the library because it's the only platform which supports it. What are you trying to use it for? Because there is probably an easier solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants