Can a Web application perform some action over Bluetooth?
<p>I'm sorry if this question sounds stupid, but I'm a complete noob to Web Development &amp; Android Development. I'm working on a project that involves principles of IoT.</p>

<p>I have this Arduino that I want to communicate with using both the Internet &amp; the Bluetooth (in case there's no Internet). I have designed a Web application that can communicate with the Arduino over the Internet &amp; I have also made the Web Application an Android app using <code>WebView</code>. </p>

<p>The button on the Web application is configured to communicate with the Arduino only using Internet. So when that same Web page is viewed in Android via WebView, the button works only if there's Internet. However, I also want <strong>only the app</strong> to be able to communicate with the Arduino over Bluetooth when both the app &amp; Arduino are connected via Bluetooth.</p>

<p>Is there any way I can configure the same button on Android app to work for Bluetooth without changing the configuration of the Button on the Web page??</p>

<p>Thanks for your time.</p>