Files
nodeMap/docs/services/database/fetchDeviceNameByIdService.md

27 lines
463 B
Markdown

<!-- /docs/services/database/fetchDeviceNameByIdService.md -->
# 🆔 fetchDeviceNameByIdService.js
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"`
---
[Zurück zur Übersicht](../../README.md)