inthehand / 32feet

Personal Area Networking for .NET. Open source and professionally supported
https://inthehand.com/components/32feet/
MIT License
838 stars 208 forks source link

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

Open MarFanNL opened 4 months ago

MarFanNL commented 4 months ago

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 commented 4 months ago

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.