CanAirIO is a citizen science initiative for air quality tracking, visualization and dissemination by using PM2.5 particulate material sensors paired with your smartphone via bluetooth.
This code is for CanAir.io iOS client and reporter for esp32-hpma115s0 pollution sensor.
- BLE scanning and connecting
- BLE auto connect and reconnect
- Receive data via BLE notification
- Basic chart for PM 2.5 data
- BLE persist connection on background service
- Recoding data in the phone
- List recorded tracks fragment
- Open Street map fragment
- Connect list records to record track
- Connect Open Street Maps to pollution data
- Firebase connection for publish reports
- Osmdroid clusters (for static points)
- Osmdroid routes (for line or dinamic points)
- Export data to json or others
- Swift 4.2
- Cocoapods
- Fastlane
git clone https://github.com/leo0307vb/ios-hpma115s0.git
cd ios-hpma115s0.git