5) The connectivity package allows the application to function as a node in a BSN by establishing a connection to the cloud server. The authenticator identifies the phone while the uploader and downloader transfer data between the smartphone and an online database. The trigger listener awaits server events so that the device can be controlled remotely by other smartphones or by the server.