463 B
463 B
🆔 fetchDeviceNameByIdService.js
Lädt den Gerätenamen (name) anhand der ID (idLD) von der API.
Verwendung
const name = await fetchDeviceNameById(idLD);
API-Route
/api/talas_v5_DB/locationDevice/locationDeviceNameById?idLD=...
Rückgabe
- Erfolgreich: Gerätebezeichnung als
string - Fehler:
"Unbekannt"