]> jspc29.x-matter.uni-frankfurt.de Git - avr.git/commitdiff
nodelay to send answers immediately in UART/Ethernet bridge
authorJan Michel <michel@physik.uni-frankfurt.de>
Fri, 30 Jun 2023 15:37:46 +0000 (17:37 +0200)
committerJan Michel <michel@physik.uni-frankfurt.de>
Fri, 30 Jun 2023 15:37:46 +0000 (17:37 +0200)
esp32/EthernetUART/MdcPowerDistributor/MdcPowerDistributor.ino

index 204875a5ba81c17cde4cbfb3c186e476a57cdad0..8d595d2c8e94b0e360058006dfaf51baa9bac512 100644 (file)
@@ -7,7 +7,7 @@ ETH Start                 -> Green LED blink once
 Telnet work               -> Green LED on
 ETH Disconnected/stopped  -> Orange LED on
 */
-
+//python "/home/jmichel/.arduino15/packages/esp32/tools/esptool_py/3.1.0/esptool.py" --chip esp32 --port "/dev/ttyUSB0" --baud 921600  --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0xe000 "/home/jmichel/.arduino15/packages/esp32/hardware/esp32/2.0.2/tools/partitions/boot_app0.bin" 0x1000 "/tmp/arduino-sketch-87920A0724C29E28FE5003E601C98B23/MdcPowerDistributor.ino.bootloader.bin" 0x10000 "/tmp/arduino-sketch-87920A0724C29E28FE5003E601C98B23/MdcPowerDistributor.ino.bin" 0x8000 "/tmp/arduino-sketch-87920A0724C29E28FE5003E601C98B23/MdcPowerDistributor.ino.partitions.bin" 
 void getdata(uint8_t buf);
  
 //load needed Libaries
@@ -218,6 +218,7 @@ void loop() {
         if (!serverClients[i] || !serverClients[i].connected()) {
           if(serverClients[i]) serverClients[i].stop();
           serverClients[i] = server.available();
+          serverClients[i].setNoDelay(true);
           break;
           }
         }