guidosch / bikecounter

This repository contains the hardware and software components of a PIR based tracking device to monitor the usage of local bike trails. The data is sent over LoRaWAN to TTN and from there to a Google Cloud backend which stores the data and provides api endpoints for the data visualization web UI.
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Refactoring #96

Closed MeierTobias closed 7 months ago

MeierTobias commented 7 months ago

I refactored the code to modularization it and decouple it from the Arduino logic. Every component has now it's own class and handles the state by itself.

The Arduino script only configures and uses the loop method of the BikeCounter singleton class.