This commit is contained in:
ISA
2025-05-28 08:04:34 +02:00
parent 97fbb6fdc1
commit 5f0133d638
107 changed files with 1446 additions and 454 deletions

View File

@@ -1,5 +1,22 @@
# fetchDeviceNameByIdService
<!-- /docs/services/database/fetchDeviceNameByIdService.md -->
Liest Gerätenamen über die eigene Next.js-API.
# 🆔 fetchDeviceNameByIdService.js
**Route:** `/api/talas_v5_DB/locationDevice/locationDeviceNameById?idLD={idLD}`
Lädt den Gerätenamen (`name`) anhand der ID (`idLD`) von der API.
## Verwendung
```js
const name = await fetchDeviceNameById(idLD);
```
## API-Route
```
/api/talas_v5_DB/locationDevice/locationDeviceNameById?idLD=...
```
## Rückgabe
- Erfolgreich: Gerätebezeichnung als `string`
- Fehler: `"Unbekannt"`