mirror of
https://github.com/schinken/esp8266-geigercounter.git
synced 2024-11-21 16:10:20 +01:00
Ignore settings.h; Add settings.h.example
This commit is contained in:
parent
43965b2590
commit
4823f0a36b
2 changed files with 27 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
||||||
wifi.h
|
settings.h
|
||||||
|
|
26
settings.h.example
Normal file
26
settings.h.example
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#define IDX_CPS_KEY 0
|
||||||
|
#define IDX_CPM_KEY 2
|
||||||
|
#define IDX_uSv_KEY 4
|
||||||
|
|
||||||
|
#define IDX_CPM 3
|
||||||
|
#define IDX_uSv 5
|
||||||
|
#define IDX_MODE 6
|
||||||
|
|
||||||
|
#define RECV_LINE_SIZE 37
|
||||||
|
|
||||||
|
#define PIN_UART_RX 0 // 4
|
||||||
|
#define PIN_UART_TX 13 // UNUSED
|
||||||
|
|
||||||
|
#define UPDATE_INTERVAL_SECONDS 300L
|
||||||
|
|
||||||
|
#define BAUD_GEIGERCOUNTER 9600
|
||||||
|
|
||||||
|
const char* ssid = "----";
|
||||||
|
const char* password = "----";
|
||||||
|
|
||||||
|
#define MQTT_TOPIC_CPM "sensor/radiation/cpm"
|
||||||
|
#define MQTT_TOPIC_USV "sensor/radiation/uSv"
|
||||||
|
#define MQTT_TOPIC_LAST_WILL "state/sensor/geigercounter"
|
||||||
|
|
||||||
|
const char* mqttHost = "mqtt.core.bckspc.de";
|
||||||
|
const char* delimiter = ", ";
|
Loading…
Reference in a new issue