21 lines
421 B
Markdown
21 lines
421 B
Markdown
<!-- /docs/redux/thunks/database/getDeviceIdByNameThunk.md -->
|
|
|
|
# 🆔 getDeviceIdByNameThunk.js
|
|
|
|
Async-Thunk zur Ermittlung der ID eines Geräts anhand des Gerätenamens.
|
|
|
|
## Verwendung
|
|
|
|
```js
|
|
dispatch(getDeviceIdByNameThunk("Kue705"));
|
|
```
|
|
|
|
## Verhalten
|
|
|
|
- Ruft `getDeviceIdByNameService(deviceName)` auf
|
|
- Fehler werden mit `rejectWithValue(error.message)` behandelt
|
|
|
|
---
|
|
|
|
[Zurück zur Übersicht](../../../README.md)
|