I'm sorry if this question sounds stupid, but I'm a complete noob to Web Development & Android Development. I'm working on a project that involves principles of IoT.
I have this Arduino that I want to communicate with using both the Internet & the Bluetooth (in case there's no Internet). I have designed a Web application that can communicate with the Arduino over the Internet & I have also made the Web Application an Android app using WebView
.
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 only the app to be able to communicate with the Arduino over Bluetooth when both the app & Arduino are connected via Bluetooth.
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??
Thanks for your time.