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

 * Send the signal data.
 */
void websocketBroadcastSignal() {
  str = "{\"signal\":{";
  str += "\"msg_type\":" + String(signal_payload.getMsgType()) + ",";
  str += "\"msg_id\":" + String(signal_payload.getMsgId()) + ",";


    // 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) {
