The widespread use of mobile and wearable devices has led to a growing need of integration between these new technologies. Precisely for this reason the objective of the thesis project was to design and implement a middleware for the devices of these categories that helps communication and coordination among them through high-level patterns, such as message exchange, publish/subscribe, tuple space. In particular, it was decided to base it on Bluetooth technology and to develop it for Android systems, thus managing to cover most of the devices of the aforementioned categories.
The project is composed by two parts, the one concerning the middleware that is contained in the bt_lib
package and the one concerning a testing application that is contained in the package app
where you can find an example of an application.
The API provides the following operation:
- create client
- create server
- connect
- disconnect
- automatic reconnection following unplanned disconnections
- scan nearby devices
- send message
- receive message
- publish message
- subscribe channel
- out message
- in request message
- read request message