From 57b9942cce47b434bfabeeae19e3c58b1a00eb3a Mon Sep 17 00:00:00 2001 From: philon- <8975765+philon-@users.noreply.github.com> Date: Mon, 19 May 2025 18:36:39 +0200 Subject: [PATCH] Add RSSI fields for Paxcounter module (#620) Co-authored-by: philon- --- .../ModuleConfig/Paxcounter.tsx | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/components/PageComponents/ModuleConfig/Paxcounter.tsx b/src/components/PageComponents/ModuleConfig/Paxcounter.tsx index 9f2804cf..a05f2093 100644 --- a/src/components/PageComponents/ModuleConfig/Paxcounter.tsx +++ b/src/components/PageComponents/ModuleConfig/Paxcounter.tsx @@ -1,4 +1,4 @@ -import type { PaxcounterValidation } from "@app/validation/moduleConfig/paxcounter.tsx"; +import type { PaxcounterValidation } from "@app/validation/moduleConfig/paxcounter.ts"; import { create } from "@bufbuild/protobuf"; import { DynamicForm } from "@components/Form/DynamicForm.tsx"; import { useDevice } from "@core/stores/deviceStore.ts"; @@ -48,6 +48,30 @@ export const Paxcounter = () => { }, ], }, + { + type: "number", + name: "wifiThreshold", + label: "WiFi RSSI Threshold", + description: + "At what WiFi RSSI level should the counter increase. Defaults to -80.", + disabledBy: [ + { + fieldName: "enabled", + }, + ], + }, + { + type: "number", + name: "bleThreshold", + label: "BLE RSSI Threshold", + description: + "At what BLE RSSI level should the counter increase. Defaults to -80.", + disabledBy: [ + { + fieldName: "enabled", + }, + ], + }, ], }, ]}