Skip to content

Developers guide

Adrian Gortzak edited this page Jun 3, 2017 · 8 revisions

Introduction

This guide is written as a help for future developers to add features to the Smart City IoT application or modifying the application to be used for a more specific task. An example could be if a city have deployes a wireless sensor network to measure the pollution levels but does not use the SenML data format that is supported initially. Another example could be if this application would be used to visualize some sensor readings at a company or at home using another transport protocol than MQTT. This guide will show a way to modify the application to support more types of data and create an APK file that could be specialised to your or your business's need and save a lot of time modifying the one aimed for the public.

New support of data formats can be sent as pull requests to improve the base application and give other developers access to more data formats.

Most of the settings that the system uses is in the sensorDataDbHelper class, located in "org/gortz/greeniot/smartcityiot/database/sensorDataDbHelpoer.class", and handles the settings that are put into the database. Remember that the database will only be removed if you uninstall the application, and though google takes backups on the database, it might require that you to disable that feature. Handling or converting data however is handled by the DataStrucutreConverter class location in the "org/gortz/greenito/smartcityiot/model/formats/datatype/DataStructureConverter.class".

Extension guides

Clone this wiki locally