Skip to content

Latest commit

 

History

History

mobile_app

mobile_app

Responsible for presenting data for user. Used to customize names of devices. Data is presented as graphs for periods specified by user (last month, all time). Communicates with ServerRpi using MQTT.

Home screen Change device name form
image image

Protobuf

are generated manually using protoc_builder and build_runner. Files can be generated using bash script generate_proto_files.sh.

Mqtt

Is implemented using mqtt_client package for asynchronous calls dart_async is used.

Graph plotting

is implemented using fl_chart.

Getting Started

1. Install flutter

Follow instructions from flutter docs

2. Install packages (not sure if needed)

flutter pub add mqtt_client logging

3. Run

flutter run

4. (optional) Generate protobuf files

# Linux only
./generate_proto_files.sh

# Window (run commands manually)
cp ../proto/light_energy_menagement_system.proto lib/proto
flutter pub run build_runner build
rm lib/proto/light_energy_menagement_system.proto