diff --git a/include/config.dev.hrl b/include/config.dev.hrl index d87ea61..5de4a89 100644 --- a/include/config.dev.hrl +++ b/include/config.dev.hrl @@ -1,7 +1,7 @@ --define(DEFAULT_STA_SSID, <<"ssid">>). --define(DEFAULT_STA_PSK, <<"12345678">>). +-define(DEFAULT_STA_SSID, <<"esl-iot">>). +-define(DEFAULT_STA_PSK, <<"Letitcrash">>). -define(DEFAULT_NTP_HOST, "pool.ntp.org"). --define(DEFAULT_GW_HOST, {192, 168, 0, 20}). +-define(DEFAULT_GW_HOST, {10, 10, 42, 180}). -define(DEFAULT_GW_DATA_PORT, 9999). -define(DEFAULT_GW_COMM_PORT, 9998). -define(DEFAULT_GW_HANDLER, c3card_gateway_command). diff --git a/src/c3card_neopixel.erl b/src/c3card_neopixel.erl index d9e57ac..4edc064 100644 --- a/src/c3card_neopixel.erl +++ b/src/c3card_neopixel.erl @@ -29,7 +29,7 @@ -define(NEOPIXEL_VALUE, 15). -define(NEOPIXEL_PIN, 4). --define(NEOPIXEL_TOTAL_PIXELS, 3). +-define(NEOPIXEL_TOTAL_PIXELS, 4). -type config() :: []. %% Default configuration for `c3card_neopixel' diff --git a/src/c3card_sensor.erl b/src/c3card_sensor.erl index a77fc4d..2287d68 100644 --- a/src/c3card_sensor.erl +++ b/src/c3card_sensor.erl @@ -33,12 +33,9 @@ -define(SERVER, ?MODULE). --type reading_type() :: humidity | relative_humidity | pressure | temperature. -%% Reading type - -type reading() :: - #{type => reading_type(), - data => float()} + #{type => atom(), + data => number()} | #{error => Error :: term(), sensor => SensorName :: atom()}. %% Reading format