supervision tree setup

master
Stefan Haslinger 2022-03-21 13:45:49 +01:00
parent 2c48ab46d1
commit c7d8f89744
1 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,14 @@ defmodule SensorHub.Application do
]
end
defp sensors do
[Sensor.new(BMP280), Sensor.new(VEML6030), Sensor.new(SGP30)]
end
defp weather_tracker_url do
Application.get_env(:sensor_hub, :weather_tracker_url)
end
def target() do
Application.get_env(:sensor_hub, :target)
end