Some info for the road ahead:
1) Creating a C++ extension for Python
2) Bluetooth FAQ
Which states:
"Can I access these APIs from Win32?
Yes, all these APIs should work. This blog details the way to call Windows APIs from Desktop applications.""
3) UWP APIs callable from a classic desktop app
4) UWP APIs available to a packaged desktop app (Desktop Bridge)
5) Calling Windows 10 APIs From a Desktop Application
A handful of API's of interest to bleson that indicate they are callable from non-UWP apps (have DualApiPartition attrib, see link 3 above) , but I'm not 100% on the 'package identity' requirement of them so can't say for sure (the 'worst-worst' case if they aren't):
https://docs.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.bluetoothadapter
https://docs.microsoft.com/en-us/uwp/api/windows.devices.enumeration.devicewatcher
Of note:
Win IoT has moved on since I tried it a year or so ago; it has a GUI with Keyboard and mouse support for its minimal desktop which has a CMD line, browser and settings GUI where it's possible to configure wifi and scan and pair with Bluetooth RFCOMM and LE devices.
It possible to create foreground graphical apps, but not in python, they are background only (this should have been a clue as to the level of Python Wind10 API support)
--
You received this message because you are subscribed to the Google Groups "python-bleson" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-bleson+unsubscribe@googlegroups.com.
To post to this group, send email to python...@googlegroups.com.
Visit this group at https://groups.google.com/group/python-bleson.
To view this discussion on the web, visit https://groups.google.com/d/msgid/python-bleson/4e3b6535-f733-4ad6-b8dc-fd806cc6cced%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
from time import sleep
from blesonwin import *
initialise()
on_advertisement(lambda x: print(x))
start_observer()
sleep(5)
stop_observer()