windows 8 Metro support

Topics: Bluetooth - Microsoft
May 14, 2012 at 2:41 PM

Will you be supporting Metro app development in windows 8 environment? I tried the dll and get compilation errors as some of the classes referenced do not exist in WinRT. Will it be possible to deliver a dll supporting WinRT?

Thanks.

Developer
May 15, 2012 at 3:03 PM
Edited May 15, 2012 at 3:09 PM

There is apparently no support in Metro for Bluetooth.  For instance there is no access to System.Net.Socket.Socket which is used with the Microsoft Bluetooth stack for comms, nor is there access of course to the Bluetooth Win32 APIs.

Neither are there any APIs in WinRT for Bluetooth.  In ProximityFinder classes a proximate connection can be made using NFC ('tap' gesture) or Wi-Fi Direct (peer browsing), and optionally a socket connection can be opened for longer term use using Wi-Fi Direct, TCP/IP, or Bluetooth.  But there's no way to make a separate Bluetooth connection apart from that.

Looks pretty bad. :-(

May 15, 2012 at 3:31 PM

Thank You.

Jul 19, 2012 at 8:54 AM

I was interested in the same issue, but it seems that MSFT started from scratch again with Windows 8. System.Net.Socket is being replaced by windows.networking.sockets:

http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.sockets.aspx

But documentation is severely lacking (that is: non-existent) and porting just the sockets part will not be easy...

Coordinator
Jul 20, 2012 at 2:01 PM

Regardless of the Sockets differences there is no access from a Metro application to the APIs used for device discovery and the custom SocketAddress functionality used to establish a Bluetooth socket (only TCP and UDP are supported in WinRT) so there remains no way to do this from a Metro application. The usual API is supported from a desktop Windows 8 application. You could create a full-screen WPF application which looks like a Metro application but it would not integrate with the App Store etc