publish "start_beep"
This commit is contained in:
@@ -487,6 +487,10 @@ static void handleKeyReceived(void)
|
|||||||
tBeepingStartWithoutWindowClose = Seconds::Get();
|
tBeepingStartWithoutWindowClose = Seconds::Get();
|
||||||
piepPattern->Start(DOUT_PIEP_PWM);
|
piepPattern->Start(DOUT_PIEP_PWM);
|
||||||
bUpdateDisp = true;
|
bUpdateDisp = true;
|
||||||
|
|
||||||
|
char payload[64];
|
||||||
|
snprintf(payload, sizeof(payload), "{\"event\":\"start_beep\", \"variant\": \"" PROJECT_VARIANT "\" }");
|
||||||
|
myMqttClient.publishStatus(payload);
|
||||||
}
|
}
|
||||||
shallPiepPrevious = shallPiepNew;
|
shallPiepPrevious = shallPiepNew;
|
||||||
numberWindowsOpen = numberWindowsOpenNew;
|
numberWindowsOpen = numberWindowsOpenNew;
|
||||||
|
|||||||
Reference in New Issue
Block a user