VEML6075 expects map
parent
d576ef6233
commit
b194dc0279
|
@ -1,6 +1,5 @@
|
|||
defmodule SensorHub.Application do
|
||||
use Application
|
||||
alias SensorHub.Sensor
|
||||
|
||||
@impl true
|
||||
def start(_type, _args) do
|
||||
|
@ -17,18 +16,10 @@ defmodule SensorHub.Application do
|
|||
[
|
||||
{SGP30, []},
|
||||
{BMP280, [i2c_address: 0x77, name: BMP280]},
|
||||
{VEML6075, []}
|
||||
{VEML6075, %{}}
|
||||
]
|
||||
end
|
||||
|
||||
defp sensors do
|
||||
[Sensor.new(BMP280), Sensor.new(VEML6075), 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
|
||||
|
|
Loading…
Reference in New Issue