Last post Jun 12, 2018 12:46 PM by markfitzme
Jun 10, 2018 11:02 AM|yannkang183|LINK
Jun 11, 2018 05:21 AM|Brando ZWZ|LINK
According to your description, I couldn't understand clearly about your requirement.
Could you please tell what is the 'BLE' device?
Do you mean you want to scan the Bluetooth devices?
In my opinion, the asp.net web application is running on the server not the client, so we coulnd't use it to access the client's hardware using ASP.NET.
If you still want to use it on the client, I suggest you could run a program on client machine that communicates with your web application, with your website being the hub of communication.
Jun 12, 2018 01:01 AM|yannkang183|LINK
Sorry for the late reply.
BLE = bluetooth Low energy
So I cannot design a code on asp.net where it can scan for bluetooth devices ?
I want to create a web application where it can scan for bluetooth devices and can pair and connect to it.
How do I do that ?
Jun 12, 2018 01:03 AM|yannkang183|LINK
I actually created a uwp app that can scan for ble devices, pair and connect. But how can I make it into a web application ?
Jun 12, 2018 01:38 AM|sivapooja|LINK
If you want to scan devices at client side, you may use either activex controls or java applets.
Jun 12, 2018 11:39 AM|PatriceSc|LINK
It seems only Chrome have experimental Bluetooth support : https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API
Jun 12, 2018 12:46 PM|markfitzme|LINK
I would say this is not viable. There is no standard for this. If you develop something in code behind and test and it works, that's because it can access the resources of your computer. There's really nothing that can do this in the browser in a standard
way. Plug-ins aren't an option as support for plug-ins such as ActiveX and others are going away. You may want to take a look at WebAssembly, but I am unsure what level of access it would have to hardware.
Security-wise, this would be a bad idea from a browser vendor since you could push sensitive data/keylogging off a user's computer to a device.