 }
 
 void artTodRequestReceived(uint8_t* pdata) {
+  rdm_discovery_enable = 10;
   artNetInterface->send_art_tod(&aUDP, tableOfDevices.rawBytes(), tableOfDevices.count());
 }
 


  Serial.println(" setup complete.");
  blinkLED();
} //setup

/************************************************************************

    while (WiFi.status() != WL_CONNECTED)  {
      delay(100);
      blinkLED();
      
    }

  }
  Serial.print("wifi started ");
  Serial.println(WiFi.localIP());

  //------------------- Initialize serialDMX  -------------------

  if ( dmx_direction == OUTPUT_FROM_NETWORK_MODE ) {                // DMX Driver startup based on direction flag
    Serial.println("starting DMX");
    ESP32DMX.startRDM(DIRECTION_PIN);
  } else {
    Serial.println("starting DMX input");
    ESP32DMX.setDirectionPin(DIRECTION_PIN);
    ESP32DMX.setDataReceivedCallback(&gotDMXCallback);
    ESP32DMX.startInput();
  }
  
  //------------------- Initialize network<->DMX interfaces -------------------
    
