Asked by:
Using ASP.net to scan for ble devices

Question
-
User2106211126 posted
Hi, anyone here knows how to use ASP.net and create a code where it can scan for BLE devices ? I need someone to guide me on this. Add me on skype if possible. I really need help on thisSunday, June 10, 2018 11:02 AM
All replies
-
User283571144 posted
Hi yannkang183,
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.
Best Regards,
Brando
Monday, June 11, 2018 5:21 AM -
User2106211126 posted
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 ?
Tuesday, June 12, 2018 1:01 AM -
User2106211126 posted
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 ?
Tuesday, June 12, 2018 1:03 AM -
User-590375999 posted
Hi,
If you want to scan devices at client side, you may use either activex controls or java applets.
Tuesday, June 12, 2018 1:38 AM -
User753101303 posted
Hi,
It seems only Chrome have experimental Bluetooth support : https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API
Tuesday, June 12, 2018 11:39 AM -
User465171450 posted
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.
Tuesday, June 12, 2018 12:46 PM