This post is an example on how easy is to integrate an IoT scenario using Sofia2 IoT platform. The example was presented on February 17th during an introduction lecture on Sofia2 basics for the Embedded & Distributed Systems Sofware Master course at the Universidad Politécnica de Madrid (UPM).
The setup will simulate a typical IoT scenario with just a couple of elements:
- Android Smarpthone (running at least a 4.4 Android version)
- BLE (Bluetooth Low Energy) Beacon
- An upgraded user for Sofia2.com platform (ROL_COLABORADOR)
The demo app will periodically fetch data from the smartphone’s accelerometer sensor and GPS. It will also operate as a BLE scanner, triggering an asynchronous event when the selected beacon is placed nearby. Data will be modeled using a Sofia2’s Ontology. Using Sofia2 console, we will create a Dashboard to represent periodic real-time data. A Groovy script will be also generated to evaluate whether the beacon was…
Ver la entrada original 1.043 palabras más