Skip to content

Developers guide

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

This guide is written as a help for a future developer to add support to the Smart City IoT application or modifying the application to be used for a more specific task. An example would be if the application would be used by a city to check the bacteria rate in the local lakes. The wanted sensor types that should be supported at the start would not be the same as the public would want. 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 needs or business 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/greencityiot/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/greencityiot/model/formats/datatype/DataStructureConverter.class".

  • Sensor types
  • Connections
  • Location
  • Topic structure
    • Topic data retrieval
    • Api calls
  • Data structure
Clone this wiki locally