Skip to content

Commit

Permalink
Include workshop configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Lanziano <[email protected]>
  • Loading branch information
arpunk committed Mar 7, 2024
1 parent 9010243 commit abbbdd7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions include/config.dev.hrl
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/c3card_neopixel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 2 additions & 5 deletions src/c3card_sensor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit abbbdd7

Please sign in to comment.