 }
 
 void websocketBroadcast() {
-  String str;
   switch (current_payload) {
     case theapi::Payload::SIGNAL:
       websocketBroadcastSignal();

    ping_last = currentMillis;
    udpBroadcast();
    websocketBroadcast();
    mqttBroadcast();
    serialPrintPayload();

    current_payload = 0;


    // No display when dark.
    int ldr = analogRead(A0);
    //Serial.print("LDR: "); Serial.println(ldr);
    if (display_status == 1 && ldr < 10) {
      display_status = 0;
    } else if (display_status == 0 && ldr > 20) {
