2022-03-15 16:29:17 +01:00
|
|
|
#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
|
|
|
|
|
2022-03-15 17:40:28 +01:00
|
|
|
#define PIN_UART_RX D1 // 4
|
2022-03-15 16:29:17 +01:00
|
|
|
#define PIN_UART_TX 13 // UNUSED
|
2022-03-16 17:07:18 +01:00
|
|
|
//#define PIN_PULSE D2
|
2022-03-15 16:29:17 +01:00
|
|
|
|
|
|
|
#define BAUD_GEIGERCOUNTER 9600
|
|
|
|
|
2022-03-16 16:17:06 +01:00
|
|
|
//#define WIFI_HOSTNAME "ESP-GeigerCounter";
|
|
|
|
#define WIFI_SSID "xxxx"
|
|
|
|
#define WIFI_PASSWORD "xxxxx"
|
2022-03-15 16:29:17 +01:00
|
|
|
|
2022-03-15 17:48:29 +01:00
|
|
|
//#define OTA_PASSWORD "foobar"
|
2022-03-15 16:29:17 +01:00
|
|
|
|
2022-03-15 17:40:28 +01:00
|
|
|
#define MQTT_HOST "mqtt.xxxxxxxxx.org"
|
|
|
|
|
|
|
|
#define MQTT_TOPIC_CPM "sensor/geigercounter/cpm"
|
|
|
|
#define MQTT_TOPIC_USV "sensor/geigercounter/uSv"
|
|
|
|
#define MQTT_TOPIC_LAST_WILL "sensor/geigercounter/status"
|
2022-03-16 17:07:18 +01:00
|
|
|
#define MQTT_TOPIC_PULSE "sensor/geigercounter/pulse"
|
2022-03-15 16:29:17 +01:00
|
|
|
|
2022-03-15 17:40:28 +01:00
|
|
|
// Only publishes values if changed since last publish
|
|
|
|
#define MQTT_PUBLISH_INTERVAL_MS (10 * 1000)
|