mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
Add ability to restart
This commit is contained in:
parent
36d6a5a51b
commit
42d268c869
@ -79,6 +79,7 @@ export function useMqtt(watchTopic, publishTopic, defaultValue = null) {
|
|||||||
|
|
||||||
const send = useCallback(
|
const send = useCallback(
|
||||||
(payload) => {
|
(payload) => {
|
||||||
|
payload = payload || defaultValue;
|
||||||
ws.send(
|
ws.send(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
topic: publishTopic || watchTopic,
|
topic: publishTopic || watchTopic,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user