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


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

}

void websocketBroadcast() {
  switch (current_payload) {
    case theapi::Payload::SIGNAL:
      websocketBroadcastSignal();
