Implementing the Bluetooth gateway explorer v2 

Until now, we've looked at the Bluetooth gateway/server implementation written in Node.js. In this section, we will study the gateway explorer v2 implementation of Bluetooth SIG. You can find the code in ~/BluetoothGateway/navible. A gateway explorer is a simple web application written in Node.js. Its true potential lies in developing your own client application and then calling the gateway URLs but, for the sake of simplicity, we will define the standard Bluetooth client made by the SIG. The interface of the gateway explorer looks like this:

It is a single-page application with three tabs on the top and two buttons to provide scanning and refreshing functionalities. I'll assume you have web development knowledge and will only focus on the Bluetooth connectivity. In case you do not have web development knowledge, you can develop a client on any platform (for example, Android and iOS) and link it to the gateway IP address. For this application, the web server and Bluetooth gateway server are both running on the same Raspberry Pi, and that is why no URLs were used in the implementation.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.247.196