From 09f8cbed6a0a109430bce481a7897f93d33037e0 Mon Sep 17 00:00:00 2001 From: agr Date: Tue, 7 Apr 2020 08:40:10 +0200 Subject: [PATCH] init not working --- .cproject | 72 ++ .gitignore | 2 + .project | 60 ++ .settings/language.settings.xml | 14 + .settings/org.eclipse.cdt.core.prefs | 540 +++++++++++ EEPROMAnything.h | 1320 ++++++++++++++++++++++++++ System.cpp | 59 ++ System.h | 39 + WebServer.h | 1320 ++++++++++++++++++++++++++ configWebserver.ino | 785 +++++++++++++++ spec.d | 2 + 11 files changed, 4213 insertions(+) create mode 100644 .cproject create mode 100644 .gitignore create mode 100644 .project create mode 100644 .settings/language.settings.xml create mode 100644 .settings/org.eclipse.cdt.core.prefs create mode 100644 EEPROMAnything.h create mode 100644 System.cpp create mode 100644 System.h create mode 100644 WebServer.h create mode 100644 configWebserver.ino create mode 100644 spec.d diff --git a/.cproject b/.cproject new file mode 100644 index 0000000..a425935 --- /dev/null +++ b/.cproject @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dcd90ee --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/Release/ +/sloeber.ino.cpp diff --git a/.project b/.project new file mode 100644 index 0000000..52cbece --- /dev/null +++ b/.project @@ -0,0 +1,60 @@ + + + configWebserver + + + + + + io.sloeber.core.inoToCpp + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + io.sloeber.arduinonature + + + + core/core + 2 + ECLIPSE_HOME/arduinoPlugin/packages/arduino/hardware/avr/1.8.2/cores/arduino + + + core/variant + 2 + ECLIPSE_HOME/arduinoPlugin/packages/arduino/hardware/avr/1.8.2/variants/mega + + + libraries/EEPROM + 2 + ECLIPSE_HOME/arduinoPlugin/packages/arduino/hardware/avr/1.8.2/libraries/EEPROM + + + libraries/Ethernet + 2 + ECLIPSE_HOME/arduinoPlugin/libraries/Ethernet/2.0.0 + + + libraries/SPI + 2 + ECLIPSE_HOME/arduinoPlugin/packages/arduino/hardware/avr/1.8.2/libraries/SPI + + + diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml new file mode 100644 index 0000000..9969d91 --- /dev/null +++ b/.settings/language.settings.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/.settings/org.eclipse.cdt.core.prefs b/.settings/org.eclipse.cdt.core.prefs new file mode 100644 index 0000000..a4eb880 --- /dev/null +++ b/.settings/org.eclipse.cdt.core.prefs @@ -0,0 +1,540 @@ +eclipse.preferences.version=1 +environment/project/io.sloeber.core.toolChain.release.613547860/A.ALT_SIZE_COMMAND/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.ALT_SIZE_COMMAND/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.ALT_SIZE_COMMAND/value="${A.COMPILER.PATH}${A.COMPILER.SIZE.CMD}" --format\=avr --mcu\=${A.BUILD.MCU} "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" +environment/project/io.sloeber.core.toolChain.release.613547860/A.ARCHIVE_FILE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.ARCHIVE_FILE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.ARCHIVE_FILE/value=arduino.ar +environment/project/io.sloeber.core.toolChain.release.613547860/A.ARCHIVE_FILE_PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.ARCHIVE_FILE_PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.ARCHIVE_FILE_PATH/value=${A.BUILD.PATH}/${A.ARCHIVE_FILE} +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.EXTENDED_FUSES/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.EXTENDED_FUSES/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.EXTENDED_FUSES/value=0xFD +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.FILE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.FILE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.FILE/value=stk500v2/stk500boot_v2_mega2560.hex +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.HIGH_FUSES/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.HIGH_FUSES/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.HIGH_FUSES/value=0xD8 +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.LOCK_BITS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.LOCK_BITS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.LOCK_BITS/value=0x0F +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.LOW_FUSES/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.LOW_FUSES/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.LOW_FUSES/value=0xFF +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.TOOL/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.TOOL/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.TOOL/value=avrdude +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.UNLOCK_BITS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.UNLOCK_BITS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BOOTLOADER.UNLOCK_BITS/value=0x3F +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.ARCH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.ARCH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.ARCH/value=AVR +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.BOARD/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.BOARD/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.BOARD/value=AVR_MEGA2560 +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.CORE.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.CORE.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.CORE.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.CORE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.CORE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.CORE/value=arduino +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.EXTRA_FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.EXTRA_FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.EXTRA_FLAGS/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.F_CPU/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.F_CPU/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.F_CPU/value=16000000L +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.MCU/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.MCU/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.MCU/value=atmega2560 +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.PATH/value=${ProjDirPath}/${ConfigName} +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.PROJECT_NAME/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.PROJECT_NAME/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.PROJECT_NAME/value=${ProjName} +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.SYSTEM.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.SYSTEM.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.SYSTEM.PATH/value=${A.RUNTIME.PLATFORM.PATH}/system +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.USB_FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.USB_FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.USB_FLAGS/value=-DUSB_VID\=${A.BUILD.VID} -DUSB_PID\=${A.BUILD.PID} "-DUSB_MANUFACTURER\=${A.BUILD.USB_MANUFACTURER}" "-DUSB_PRODUCT\=${A.BUILD.USB_PRODUCT}" +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.USB_MANUFACTURER/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.USB_MANUFACTURER/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.USB_MANUFACTURER/value=\\"Unknown\\" +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.VARIANT.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.VARIANT.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.VARIANT.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\mega +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.VARIANT/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.VARIANT/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.BUILD.VARIANT/value=mega +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.AR.CMD/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.AR.CMD/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.AR.CMD/value=avr-gcc-ar +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.AR.EXTRA_FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.AR.EXTRA_FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.AR.EXTRA_FLAGS/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.AR.FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.AR.FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.AR.FLAGS/value=rcs +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.CMD/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.CMD/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.CMD/value=avr-gcc +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.ELF.CMD/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.ELF.CMD/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.ELF.CMD/value=avr-gcc +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.ELF.EXTRA_FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.ELF.EXTRA_FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.ELF.EXTRA_FLAGS/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.ELF.FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.ELF.FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.ELF.FLAGS/value=${A.COMPILER.WARNING_FLAGS} -Os -Wl,--gc-sections,--relax +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.EXTRA_FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.EXTRA_FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.EXTRA_FLAGS/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.C.FLAGS/value=-c -g -Os ${A.COMPILER.WARNING_FLAGS} -std\=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.CPP.CMD/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.CPP.CMD/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.CPP.CMD/value=avr-g++ +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.CPP.EXTRA_FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.CPP.EXTRA_FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.CPP.EXTRA_FLAGS/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.CPP.FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.CPP.FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.CPP.FLAGS/value=-c -g -Os ${A.COMPILER.WARNING_FLAGS} -std\=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error\=narrowing -MMD -flto +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.ELF2HEX.CMD/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.ELF2HEX.CMD/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.ELF2HEX.CMD/value=avr-objcopy +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.ELF2HEX.EXTRA_FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.ELF2HEX.EXTRA_FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.ELF2HEX.EXTRA_FLAGS/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.ELF2HEX.FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.ELF2HEX.FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.ELF2HEX.FLAGS/value=-O ihex -R .eeprom +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.LDFLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.LDFLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.LDFLAGS/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.OBJCOPY.CMD/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.OBJCOPY.CMD/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.OBJCOPY.CMD/value=avr-objcopy +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.OBJCOPY.EEP.EXTRA_FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.OBJCOPY.EEP.EXTRA_FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.OBJCOPY.EEP.EXTRA_FLAGS/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.OBJCOPY.EEP.FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.OBJCOPY.EEP.FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.OBJCOPY.EEP.FLAGS/value=-O ihex -j .eeprom --set-section-flags\=.eeprom\=alloc,load --no-change-warnings --change-section-lma .eeprom\=0 +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.PATH/value=${A.RUNTIME.TOOLS.AVR-GCC.PATH}/bin/ +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.S.EXTRA_FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.S.EXTRA_FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.S.EXTRA_FLAGS/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.S.FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.S.FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.S.FLAGS/value=-c -g -x assembler-with-cpp -flto -MMD +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.SIZE.CMD/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.SIZE.CMD/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.SIZE.CMD/value=avr-size +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.ALL/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.ALL/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.ALL/value=-Wall -Wextra +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.DEFAULT/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.DEFAULT/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.DEFAULT/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.MORE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.MORE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.MORE/value=-Wall +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.NONE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.NONE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS.NONE/value=-w +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.COMPILER.WARNING_FLAGS/value=${A.COMPILER.WARNING_FLAGS.ALL} +environment/project/io.sloeber.core.toolChain.release.613547860/A.ESP8266.NETWORK.UPLOAD.TOOL/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.ESP8266.NETWORK.UPLOAD.TOOL/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.ESP8266.NETWORK.UPLOAD.TOOL/value=esp8266OTA +environment/project/io.sloeber.core.toolChain.release.613547860/A.NAME/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.NAME/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.NAME/value=Arduino Mega or Mega 2560 +environment/project/io.sloeber.core.toolChain.release.613547860/A.PACKAGES/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.PACKAGES/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.PACKAGES/value=${eclipse_home}/arduinoPlugin/packages +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.0/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.0/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.0/value=0x0010 +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.1/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.1/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.1/value=0x0042 +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.2/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.2/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.2/value=0x0010 +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.3/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.3/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.3/value=0x0042 +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.4/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.4/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.4/value=0x0210 +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.5/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.5/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.PID.5/value=0x0242 +environment/project/io.sloeber.core.toolChain.release.613547860/A.PREPROC.INCLUDES.FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.PREPROC.INCLUDES.FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.PREPROC.INCLUDES.FLAGS/value=-w -x c++ -M -MG -MP +environment/project/io.sloeber.core.toolChain.release.613547860/A.PREPROC.MACROS.FLAGS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.PREPROC.MACROS.FLAGS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.PREPROC.MACROS.FLAGS/value=-w -x c++ -E -CC +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN.1/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN.1/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.AR.CMD}" ${A.COMPILER.AR.FLAGS} ${A.COMPILER.AR.EXTRA_FLAGS} +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN.2/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN.2/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN.2/value=\ +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN.3/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN.3/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN.3/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.AR.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.AR.CMD}" ${A.COMPILER.AR.FLAGS} ${A.COMPILER.AR.EXTRA_FLAGS} "${A.ARCHIVE_FILE_PATH}" "${A.OBJECT_FILE}" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN.1/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN.1/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.C.ELF.CMD}" ${A.COMPILER.C.ELF.FLAGS} -mmcu\=${A.BUILD.MCU} ${A.COMPILER.C.ELF.EXTRA_FLAGS} -o "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN.2/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN.2/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN.2/value=\ +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN.3/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN.3/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN.3/value=\ "-L${A.BUILD.PATH}" -lm +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.COMBINE.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.C.ELF.CMD}" ${A.COMPILER.C.ELF.FLAGS} -mmcu\=${A.BUILD.MCU} ${A.COMPILER.C.ELF.EXTRA_FLAGS} -o "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" ${A.OBJECT_FILES} "${A.BUILD.PATH}/${A.ARCHIVE_FILE}" "-L${A.BUILD.PATH}" -lm +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN.1/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN.1/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.C.CMD}" ${A.COMPILER.C.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -DARDUINO\=${A.RUNTIME.IDE.VERSION} -DARDUINO_${A.BUILD.BOARD} -DARDUINO_ARCH_${A.BUILD.ARCH} ${A.COMPILER.C.EXTRA_FLAGS} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES} +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN.2/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN.2/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN.2/value=\ -o +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN.3/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN.3/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN.3/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.C.O.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.C.CMD}" ${A.COMPILER.C.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -DARDUINO\=${A.RUNTIME.IDE.VERSION} -DARDUINO_${A.BUILD.BOARD} -DARDUINO_ARCH_${A.BUILD.ARCH} ${A.COMPILER.C.EXTRA_FLAGS} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES} "${A.SOURCE_FILE}" -o "${A.OBJECT_FILE}" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN.1/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN.1/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.CPP.CMD}" ${A.COMPILER.CPP.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -DARDUINO\=${A.RUNTIME.IDE.VERSION} -DARDUINO_${A.BUILD.BOARD} -DARDUINO_ARCH_${A.BUILD.ARCH} ${A.COMPILER.CPP.EXTRA_FLAGS} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES} +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN.2/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN.2/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN.2/value=\ -o +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN.3/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN.3/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN.3/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.CPP.O.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.CPP.CMD}" ${A.COMPILER.CPP.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -DARDUINO\=${A.RUNTIME.IDE.VERSION} -DARDUINO_${A.BUILD.BOARD} -DARDUINO_ARCH_${A.BUILD.ARCH} ${A.COMPILER.CPP.EXTRA_FLAGS} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES} "${A.SOURCE_FILE}" -o "${A.OBJECT_FILE}" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.EEP.PATTERN.1/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.EEP.PATTERN.1/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.EEP.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.OBJCOPY.CMD}" ${A.COMPILER.OBJCOPY.EEP.FLAGS} ${A.COMPILER.OBJCOPY.EEP.EXTRA_FLAGS} "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.eep" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.EEP.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.EEP.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.EEP.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.OBJCOPY.CMD}" ${A.COMPILER.OBJCOPY.EEP.FLAGS} ${A.COMPILER.OBJCOPY.EEP.EXTRA_FLAGS} "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.eep" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.HEX.PATTERN.1/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.HEX.PATTERN.1/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.HEX.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.ELF2HEX.CMD}" ${A.COMPILER.ELF2HEX.FLAGS} ${A.COMPILER.ELF2HEX.EXTRA_FLAGS} "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.HEX.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.HEX.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OBJCOPY.HEX.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.ELF2HEX.CMD}" ${A.COMPILER.ELF2HEX.FLAGS} ${A.COMPILER.ELF2HEX.EXTRA_FLAGS} "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OUTPUT.SAVE_FILE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OUTPUT.SAVE_FILE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OUTPUT.SAVE_FILE/value=${A.BUILD.PROJECT_NAME}.${A.BUILD.VARIANT}.hex +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OUTPUT.TMP_FILE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OUTPUT.TMP_FILE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.OUTPUT.TMP_FILE/value=${A.BUILD.PROJECT_NAME}.hex +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.PREPROC.INCLUDES/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.PREPROC.INCLUDES/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.PREPROC.INCLUDES/value="${A.COMPILER.PATH}${A.COMPILER.CPP.CMD}" ${A.COMPILER.CPP.FLAGS} ${A.PREPROC.INCLUDES.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -DARDUINO\=${A.RUNTIME.IDE.VERSION} -DARDUINO_${A.BUILD.BOARD} -DARDUINO_ARCH_${A.BUILD.ARCH} ${A.COMPILER.CPP.EXTRA_FLAGS} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES} "${A.SOURCE_FILE}" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.PREPROC.MACROS/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.PREPROC.MACROS/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.PREPROC.MACROS/value="${A.COMPILER.PATH}${A.COMPILER.CPP.CMD}" ${A.COMPILER.CPP.FLAGS} ${A.PREPROC.MACROS.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -DARDUINO\=${A.RUNTIME.IDE.VERSION} -DARDUINO_${A.BUILD.BOARD} -DARDUINO_ARCH_${A.BUILD.ARCH} ${A.COMPILER.CPP.EXTRA_FLAGS} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES} "${A.SOURCE_FILE}" -o "${A.PREPROCESSED_FILE_PATH}" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN.1/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN.1/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.C.CMD}" ${A.COMPILER.S.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -DARDUINO\=${A.RUNTIME.IDE.VERSION} -DARDUINO_${A.BUILD.BOARD} -DARDUINO_ARCH_${A.BUILD.ARCH} ${A.COMPILER.S.EXTRA_FLAGS} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES} +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN.2/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN.2/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN.2/value=\ -o +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN.3/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN.3/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN.3/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.S.O.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.C.CMD}" ${A.COMPILER.S.FLAGS} -mmcu\=${A.BUILD.MCU} -DF_CPU\=${A.BUILD.F_CPU} -DARDUINO\=${A.RUNTIME.IDE.VERSION} -DARDUINO_${A.BUILD.BOARD} -DARDUINO_ARCH_${A.BUILD.ARCH} ${A.COMPILER.S.EXTRA_FLAGS} ${A.BUILD.EXTRA_FLAGS} ${A.INCLUDES} "${A.SOURCE_FILE}" -o "${A.OBJECT_FILE}" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.PATTERN.1/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.PATTERN.1/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.PATTERN.1/value="${A.COMPILER.PATH}${A.COMPILER.SIZE.CMD}" -A "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.PATTERN/value="${A.COMPILER.PATH}${A.COMPILER.SIZE.CMD}" -A "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.elf" +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.REGEX.DATA/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.REGEX.DATA/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.REGEX.DATA/value=^(?\:\\.data|\\.bss|\\.noinit)\\s+([0-9]+).* +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.REGEX.EEPROM/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.REGEX.EEPROM/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.REGEX.EEPROM/value=^(?\:\\.eeprom)\\s+([0-9]+).* +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.REGEX/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.REGEX/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RECIPE.SIZE.REGEX/value=^(?\:\\.text|\\.data|\\.bootloader)\\s+([0-9]+).* +environment/project/io.sloeber.core.toolChain.release.613547860/A.REFERENCED.CORE.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.REFERENCED.CORE.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.REFERENCED.CORE.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\hardware\\avr\\1.8.2 +environment/project/io.sloeber.core.toolChain.release.613547860/A.REFERENCED.UPLOAD.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.REFERENCED.UPLOAD.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.REFERENCED.UPLOAD.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\hardware\\avr\\1.8.2 +environment/project/io.sloeber.core.toolChain.release.613547860/A.REFERENCED.VARIANT.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.REFERENCED.VARIANT.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.REFERENCED.VARIANT.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\hardware\\avr\\1.8.2 +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.HARDWARE.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.HARDWARE.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.HARDWARE.PATH/value=${eclipse_home}/arduinoPlugin/packages/arduino/hardware/avr +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.IDE.VERSION/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.IDE.VERSION/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.IDE.VERSION/value=10802 +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.PLATFORM.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.PLATFORM.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.PLATFORM.PATH/value=${eclipse_home}/arduinoPlugin/packages/arduino/hardware/avr/1.8.2 +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.ARDUINOOTA-1.3.0.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.ARDUINOOTA-1.3.0.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.ARDUINOOTA-1.3.0.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\tools\\arduinoOTA\\1.3.0 +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.ARDUINOOTA.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.ARDUINOOTA.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.ARDUINOOTA.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\tools\\arduinoOTA\\1.3.0 +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.ARDUINOOTA1.3.0.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.ARDUINOOTA1.3.0.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.ARDUINOOTA1.3.0.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\tools\\arduinoOTA\\1.3.0 +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVR-GCC-7.3.0-ATMEL3.6.1-ARDUINO5.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVR-GCC-7.3.0-ATMEL3.6.1-ARDUINO5.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVR-GCC-7.3.0-ATMEL3.6.1-ARDUINO5.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5 +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVR-GCC.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVR-GCC.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVR-GCC.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5 +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVR-GCC7.3.0-ATMEL3.6.1-ARDUINO5.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVR-GCC7.3.0-ATMEL3.6.1-ARDUINO5.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVR-GCC7.3.0-ATMEL3.6.1-ARDUINO5.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5 +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVRDUDE-6.3.0-ARDUINO17.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVRDUDE-6.3.0-ARDUINO17.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVRDUDE-6.3.0-ARDUINO17.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\tools\\avrdude\\6.3.0-arduino17 +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVRDUDE.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVRDUDE.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVRDUDE.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\tools\\avrdude\\6.3.0-arduino17 +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVRDUDE6.3.0-ARDUINO17.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVRDUDE6.3.0-ARDUINO17.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.RUNTIME.TOOLS.AVRDUDE6.3.0-ARDUINO17.PATH/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\tools\\avrdude\\6.3.0-arduino17 +environment/project/io.sloeber.core.toolChain.release.613547860/A.SERIAL.PORT.FILE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.SERIAL.PORT.FILE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.SERIAL.PORT.FILE/value=${A.SERIAL.PORT} +environment/project/io.sloeber.core.toolChain.release.613547860/A.SERIAL.PORT/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.SERIAL.PORT/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.SERIAL.PORT/value=${JANTJE.COM_PORT} +environment/project/io.sloeber.core.toolChain.release.613547860/A.SOFTWARE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.SOFTWARE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.SOFTWARE/value=ARDUINO +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.QUIET/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.QUIET/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.QUIET/value=-q -q +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.VERBOSE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.VERBOSE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.BOOTLOADER.PARAMS.VERBOSE/value=-v +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.BOOTLOADER.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.BOOTLOADER.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.BOOTLOADER.PATTERN/value="${A.TOOLS.AVRDUDE.CMD.PATH}" "-C${A.TOOLS.AVRDUDE.CONFIG.PATH}" ${A.TOOLS.AVRDUDE.BOOTLOADER.VERBOSE} -p${A.BUILD.MCU} -c${A.TOOLS.AVRDUDE.PROTOCOL} ${A.TOOLS.AVRDUDE.PROGRAM.EXTRA_PARAMS} "-Uflash\:w\:${A.RUNTIME.PLATFORM.PATH}/bootloaders/${A.BOOTLOADER.FILE}\:i" -Ulock\:w\:${A.BOOTLOADER.LOCK_BITS}\:m +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.CMD.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.CMD.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.CMD.PATH/value=${A.TOOLS.AVRDUDE.PATH}/bin/avrdude +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.CONFIG.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.CONFIG.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.CONFIG.PATH/value=${A.TOOLS.AVRDUDE.PATH}/etc/avrdude.conf +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.ERASE.PARAMS.QUIET/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.ERASE.PARAMS.QUIET/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.ERASE.PARAMS.QUIET/value=-q -q +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.ERASE.PARAMS.VERBOSE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.ERASE.PARAMS.VERBOSE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.ERASE.PARAMS.VERBOSE/value=-v +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.ERASE.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.ERASE.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.ERASE.PATTERN/value="${A.TOOLS.AVRDUDE.CMD.PATH}" "-C${A.TOOLS.AVRDUDE.CONFIG.PATH}" ${A.TOOLS.AVRDUDE.ERASE.VERBOSE} -p${A.BUILD.MCU} -c${A.TOOLS.AVRDUDE.PROTOCOL} ${A.TOOLS.AVRDUDE.PROGRAM.EXTRA_PARAMS} -e -Ulock\:w\:${A.BOOTLOADER.UNLOCK_BITS}\:m -Uefuse\:w\:${A.BOOTLOADER.EXTENDED_FUSES}\:m -Uhfuse\:w\:${A.BOOTLOADER.HIGH_FUSES}\:m -Ulfuse\:w\:${A.BOOTLOADER.LOW_FUSES}\:m +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.NETWORK_CMD/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.NETWORK_CMD/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.NETWORK_CMD/value=${A.RUNTIME.TOOLS.ARDUINOOTA.PATH}/bin/arduinoOTA +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PATH/value=${A.RUNTIME.TOOLS.AVRDUDE.PATH} +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.NOVERIFY/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.NOVERIFY/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.NOVERIFY/value=-V +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.QUIET/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.QUIET/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.QUIET/value=-q -q +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.VERBOSE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.VERBOSE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PARAMS.VERBOSE/value=-v +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.PATTERN/value="${A.TOOLS.AVRDUDE.CMD.PATH}" "-C${A.TOOLS.AVRDUDE.CONFIG.PATH}" ${A.TOOLS.AVRDUDE.PROGRAM.VERBOSE} ${A.TOOLS.AVRDUDE.PROGRAM.VERIFY} -p${A.BUILD.MCU} -c${A.TOOLS.AVRDUDE.PROTOCOL} ${A.TOOLS.AVRDUDE.PROGRAM.EXTRA_PARAMS} "-Uflash\:w\:${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex\:i" +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.VERIFY/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.VERIFY/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.PROGRAM.VERIFY/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.NETWORK_PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.NETWORK_PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.NETWORK_PATTERN/value="${A.TOOLS.AVRDUDE.NETWORK_CMD}" -address ${A.SERIAL.PORT} -port ${A.TOOLS.AVRDUDE.UPLOAD.NETWORK.PORT} -sketch "${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex" -upload ${A.TOOLS.AVRDUDE.UPLOAD.NETWORK.ENDPOINT_UPLOAD} -sync ${A.TOOLS.AVRDUDE.UPLOAD.NETWORK.ENDPOINT_SYNC} -reset ${A.TOOLS.AVRDUDE.UPLOAD.NETWORK.ENDPOINT_RESET} -sync_exp ${A.TOOLS.AVRDUDE.UPLOAD.NETWORK.SYNC_RETURN} +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.NOVERIFY/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.NOVERIFY/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.NOVERIFY/value=-V +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.QUIET/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.QUIET/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.QUIET/value=-q -q +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.VERBOSE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.VERBOSE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PARAMS.VERBOSE/value=-v +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.PATTERN/value="${A.TOOLS.AVRDUDE.CMD.PATH}" "-C${A.TOOLS.AVRDUDE.CONFIG.PATH}" ${A.UPLOAD.VERBOSE} ${A.TOOLS.AVRDUDE.UPLOAD.VERIFY} -p${A.BUILD.MCU} -c${A.UPLOAD.PROTOCOL} "-P${A.SERIAL.PORT}" -b${A.UPLOAD.SPEED} -D "-Uflash\:w\:${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex\:i" +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.VERIFY/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.VERIFY/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE.UPLOAD.VERIFY/value= +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE_REMOTE.UPLOAD.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE_REMOTE.UPLOAD.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE_REMOTE.UPLOAD.PATTERN/value=/usr/bin/run-avrdude /tmp/sketch.hex ${A.UPLOAD.VERBOSE} -p${A.BUILD.MCU} +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE_REMOTE.UPLOAD.VERBOSE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE_REMOTE.UPLOAD.VERBOSE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.AVRDUDE_REMOTE.UPLOAD.VERBOSE/value=-v +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.ESP8266OTA.UPLOAD.PATTERN/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.ESP8266OTA.UPLOAD.PATTERN/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.ESP8266OTA.UPLOAD.PATTERN/value=${A.TOOLS.ESP8266OTA.TOOLS.ESPTOOL.UPLOAD.NETWORK_PATTERN} +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.ESP8266OTA/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.ESP8266OTA/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.ESP8266OTA/value=${A.TOOLS.ESP8266OTA.TOOLS.ESPTOOL.NETWORK_CMD} +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.ESPTOOL.NETWORK.PASSWORD/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.ESPTOOL.NETWORK.PASSWORD/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.TOOLS.ESPTOOL.NETWORK.PASSWORD/value=${A.NETWORK.AUTH} +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.ALTID/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.ALTID/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.ALTID/value=no_altID +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.MAXIMUM_DATA_SIZE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.MAXIMUM_DATA_SIZE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.MAXIMUM_DATA_SIZE/value=8192 +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.MAXIMUM_SIZE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.MAXIMUM_SIZE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.MAXIMUM_SIZE/value=253952 +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.PROTOCOL/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.PROTOCOL/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.PROTOCOL/value=wiring +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.SPEED/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.SPEED/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.SPEED/value=115200 +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.TOOL/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.TOOL/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.TOOL/value=avrdude +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.USBID/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.USBID/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.UPLOAD.USBID/value=no_altID +environment/project/io.sloeber.core.toolChain.release.613547860/A.VERSION/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.VERSION/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.VERSION/value=1.8.2 +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.0/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.0/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.0/value=0x2341 +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.1/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.1/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.1/value=0x2341 +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.2/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.2/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.2/value=0x2A03 +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.3/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.3/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.3/value=0x2A03 +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.4/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.4/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.4/value=0x2341 +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.5/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.5/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/A.VID.5/value=0x2341 +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.ARCHITECTURE_ID/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.ARCHITECTURE_ID/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.ARCHITECTURE_ID/value=avr +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.BOARDS_FILE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.BOARDS_FILE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.BOARDS_FILE/value=C\:\\Sloeber\\arduinoPlugin\\packages\\arduino\\hardware\\avr\\1.8.2\\boards.txt +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.BOARD_ID/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.BOARD_ID/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.BOARD_ID/value=mega +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.BOARD_NAME/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.BOARD_NAME/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.BOARD_NAME/value=Arduino Mega or Mega 2560 +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.COM_PORT/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.COM_PORT/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.COM_PORT/value=COM4 +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.ECLIPSE_LOCATION/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.ECLIPSE_LOCATION/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.ECLIPSE_LOCATION/value=${eclipse_home} +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.ALL/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.ALL/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.ALL/value= +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.ARCHIVE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.ARCHIVE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.ARCHIVE/value= +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.ASSEMBLY/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.ASSEMBLY/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.ASSEMBLY/value= +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.C.COMPILE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.C.COMPILE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.C.COMPILE/value= +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.COMPILE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.COMPILE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.COMPILE/value= +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.CPP.COMPILE/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.CPP.COMPILE/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.CPP.COMPILE/value= +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.LINK/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.LINK/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.EXTRA.LINK/value= +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.MAKE_LOCATION/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.MAKE_LOCATION/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.MAKE_LOCATION/value=C\:\\Sloeber\\arduinoPlugin\\tools\\make\\ +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.MENU/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.MENU/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.MENU/value=cpu\=atmega2560 +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.OBJCOPY/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.OBJCOPY/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.OBJCOPY/value=${A.RECIPE.OBJCOPY.EEP.PATTERN}\n\t${A.RECIPE.OBJCOPY.HEX.PATTERN} +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.OS_NAME/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.OS_NAME/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.OS_NAME/value=win32 +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.PACKAGE_ID/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.PACKAGE_ID/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.PACKAGE_ID/value=arduino +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.PROJECT_NAME/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.PROJECT_NAME/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.PROJECT_NAME/value=configWebserver +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.SELECTED.PLATFORM/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.SELECTED.PLATFORM/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.SELECTED.PLATFORM/value=${eclipse_home}/arduinoPlugin/packages/arduino/hardware/avr/1.8.2 +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.SIZE.SWITCH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.SIZE.SWITCH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.SIZE.SWITCH/value=${A.RECIPE.SIZE.PATTERN} +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.UPLOAD/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.UPLOAD/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.UPLOAD/value=Default +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.WARNING_LEVEL/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.WARNING_LEVEL/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.WARNING_LEVEL/value=true +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.WORKSPACE_LOCATION/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.WORKSPACE_LOCATION/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/JANTJE.WORKSPACE_LOCATION/value=C\:\\Users\\agr\\Documents\\sloeber-workspace +environment/project/io.sloeber.core.toolChain.release.613547860/PATH/delimiter=; +environment/project/io.sloeber.core.toolChain.release.613547860/PATH/operation=replace +environment/project/io.sloeber.core.toolChain.release.613547860/PATH/value=${A.COMPILER.PATH}${PathDelimiter}${A.BUILD.GENERIC.PATH}${PathDelimiter}${SystemRoot}\\system32${PathDelimiter}${SystemRoot}${PathDelimiter}${SystemRoot}\\system32\\Wbem${PathDelimiter}${sloeber_path_extension} +environment/project/io.sloeber.core.toolChain.release.613547860/append=true +environment/project/io.sloeber.core.toolChain.release.613547860/appendContributed=true diff --git a/EEPROMAnything.h b/EEPROMAnything.h new file mode 100644 index 0000000..0b11028 --- /dev/null +++ b/EEPROMAnything.h @@ -0,0 +1,1320 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-file-style: "k&r"; c-basic-offset: 2; -*- + + Webduino, a simple Arduino web server + Copyright 2009-2014 Ben Combee, Ran Talbott, Christopher Lee, Martin Lormes + Francisco M Cuenca-Acuna + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +#ifndef WEBDUINO_H_ +#define WEBDUINO_H_ + +#include +#include + +#include +#include +#include + +/******************************************************************** + * CONFIGURATION + ********************************************************************/ + +#define WEBDUINO_VERSION 1007 +#define WEBDUINO_VERSION_STRING "1.7" + +// standard END-OF-LINE marker in HTTP +#define CRLF "\r\n" + +// If processConnection is called without a buffer, it allocates one +// of 32 bytes +#define WEBDUINO_DEFAULT_REQUEST_LENGTH 32 + +// How long to wait before considering a connection as dead when +// reading the HTTP request. Used to avoid DOS attacks. +#ifndef WEBDUINO_READ_TIMEOUT_IN_MS +#define WEBDUINO_READ_TIMEOUT_IN_MS 1000 +#endif + +#ifndef WEBDUINO_COMMANDS_COUNT +#define WEBDUINO_COMMANDS_COUNT 8 +#endif + +#ifndef WEBDUINO_URL_PATH_COMMAND_LENGTH +#define WEBDUINO_URL_PATH_COMMAND_LENGTH 8 +#endif + +#ifndef WEBDUINO_FAIL_MESSAGE +#define WEBDUINO_FAIL_MESSAGE "

EPIC FAIL

" +#endif + +#ifndef WEBDUINO_AUTH_REALM +#define WEBDUINO_AUTH_REALM "Webduino" +#endif // #ifndef WEBDUINO_AUTH_REALM + +#ifndef WEBDUINO_AUTH_MESSAGE +#define WEBDUINO_AUTH_MESSAGE "

401 Unauthorized

" +#endif // #ifndef WEBDUINO_AUTH_MESSAGE + +#ifndef WEBDUINO_SERVER_ERROR_MESSAGE +#define WEBDUINO_SERVER_ERROR_MESSAGE "

500 Internal Server Error

" +#endif // WEBDUINO_SERVER_ERROR_MESSAGE + +#ifndef WEBDUINO_OUTPUT_BUFFER_SIZE +#define WEBDUINO_OUTPUT_BUFFER_SIZE 32 +#endif // WEBDUINO_OUTPUT_BUFFER_SIZE + +// add '#define WEBDUINO_FAVICON_DATA ""' to your application +// before including WebServer.h to send a null file as the favicon.ico file +// otherwise this defaults to a 16x16 px black diode on blue ground +// (or include your own icon if you like) +#ifndef WEBDUINO_FAVICON_DATA +#define WEBDUINO_FAVICON_DATA { 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x10, \ + 0x10, 0x02, 0x00, 0x01, 0x00, 0x01, 0x00, \ + 0xb0, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, \ + 0x00, 0x28, 0x00, 0x00, 0x00, 0x10, 0x00, \ + 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, \ + 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, \ + 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, \ + 0x00, 0xff, 0xff, 0x00, 0x00, 0xcf, 0xbf, \ + 0x00, 0x00, 0xc7, 0xbf, 0x00, 0x00, 0xc3, \ + 0xbf, 0x00, 0x00, 0xc1, 0xbf, 0x00, 0x00, \ + 0xc0, 0xbf, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0xc0, 0xbf, 0x00, 0x00, 0xc1, 0xbf, \ + 0x00, 0x00, 0xc3, 0xbf, 0x00, 0x00, 0xc7, \ + 0xbf, 0x00, 0x00, 0xcf, 0xbf, 0x00, 0x00, \ + 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00 } +#endif // #ifndef WEBDUINO_FAVICON_DATA + +// add "#define WEBDUINO_SERIAL_DEBUGGING 1" to your application +// before including WebServer.h to have incoming requests logged to +// the serial port. +#ifndef WEBDUINO_SERIAL_DEBUGGING +#define WEBDUINO_SERIAL_DEBUGGING 0 +#endif +#if WEBDUINO_SERIAL_DEBUGGING +#include +#endif + +// declared in wiring.h +extern "C" unsigned long millis(void); + +// declare a static string +#ifdef __AVR__ +#define P(name) static const unsigned char name[] __attribute__(( section(".progmem." #name) )) +#else +#define P(name) static const unsigned char name[] +#endif + +// returns the number of elements in the array +#define SIZE(array) (sizeof(array) / sizeof(*array)) + +#ifdef _VARIANT_ARDUINO_DUE_X_ +#define pgm_read_byte(ptr) (unsigned char)(* ptr) +#endif +/******************************************************************** + * DECLARATIONS + ********************************************************************/ + +/* Return codes from nextURLparam. NOTE: URLPARAM_EOS is returned + * when you call nextURLparam AFTER the last parameter is read. The + * last actual parameter gets an "OK" return code. */ + +enum URLPARAM_RESULT { URLPARAM_OK, + URLPARAM_NAME_OFLO, + URLPARAM_VALUE_OFLO, + URLPARAM_BOTH_OFLO, + URLPARAM_EOS // No params left +}; + +class WebServer: public Print +{ +public: + // passed to a command to indicate what kind of request was received + enum ConnectionType { INVALID, GET, HEAD, POST, PUT, DELETE, PATCH }; + + // any commands registered with the web server have to follow + // this prototype. + // url_tail contains the part of the URL that wasn't matched against + // the registered command table. + // tail_complete is true if the complete URL fit in url_tail, false if + // part of it was lost because the buffer was too small. + typedef void Command(WebServer &server, ConnectionType type, + char *url_tail, bool tail_complete); + + // Prototype for the optional function which consumes the URL path itself. + // url_path contains pointers to the seperate parts of the URL path where '/' + // was used as the delimiter. + typedef void UrlPathCommand(WebServer &server, ConnectionType type, + char **url_path, char *url_tail, + bool tail_complete); + + // constructor for webserver object + WebServer(const char *urlPrefix = "", uint16_t port = 80); + + // start listening for connections + void begin(); + + // check for an incoming connection, and if it exists, process it + // by reading its request and calling the appropriate command + // handler. This version is for compatibility with apps written for + // version 1.1, and allocates the URL "tail" buffer internally. + void processConnection(); + + // check for an incoming connection, and if it exists, process it + // by reading its request and calling the appropriate command + // handler. This version saves the "tail" of the URL in buff. + void processConnection(char *buff, int *bufflen); + + // set command that's run when you access the root of the server + void setDefaultCommand(Command *cmd); + + // set command run for undefined pages + void setFailureCommand(Command *cmd); + + // add a new command to be run at the URL specified by verb + void addCommand(const char *verb, Command *cmd); + + // Set command that's run if default command or URL specified commands do + // not run, uses extra url_path parameter to allow resolving the URL in the + // function. + void setUrlPathCommand(UrlPathCommand *cmd); + + // utility function to output CRLF pair + void printCRLF(); + + // output a string stored in program memory, usually one defined + // with the P macro + void printP(const unsigned char *str); + + // inline overload for printP to handle signed char strings + void printP(const char *str) { printP((unsigned char*)str); } + + // support for C style formating + void printf(char *fmt, ... ); + #ifdef F + void printf(const __FlashStringHelper *format, ... ); + #endif + + // output raw data stored in program memory + void writeP(const unsigned char *data, size_t length); + + // output HTML for a radio button + void radioButton(const char *name, const char *val, + const char *label, bool selected); + + // output HTML for a checkbox + void checkBox(const char *name, const char *val, + const char *label, bool selected); + + // returns next character or -1 if we're at end-of-stream + int read(); + + // put a character that's been read back into the input pool + void push(int ch); + + // returns true if the string is next in the stream. Doesn't + // consume any character if false, so can be used to try out + // different expected values. + bool expect(const char *expectedStr); + + // returns true if a number, with possible whitespace in front, was + // read from the server stream. number will be set with the new + // value or 0 if nothing was read. + bool readInt(int &number); + + // reads a header value, stripped of possible whitespace in front, + // from the server stream + void readHeader(char *value, int valueLen); + + // Read the next keyword parameter from the socket. Assumes that other + // code has already skipped over the headers, and the next thing to + // be read will be the start of a keyword. + // + // returns true if we're not at end-of-stream + bool readPOSTparam(char *name, int nameLen, char *value, int valueLen); + + // Read the next keyword parameter from the buffer filled by getRequest. + // + // returns 0 if everything weent okay, non-zero if not + // (see the typedef for codes) + URLPARAM_RESULT nextURLparam(char **tail, char *name, int nameLen, + char *value, int valueLen); + + // compare string against credentials in current request + // + // authCredentials must be Base64 encoded outside of Webduino + // (I wanted to be easy on the resources) + // + // returns true if strings match, false otherwise + bool checkCredentials(const char authCredentials[45]); + + // output headers and a message indicating a server error + void httpFail(); + + // output headers and a message indicating "401 Unauthorized" + void httpUnauthorized(); + + // output headers and a message indicating "500 Internal Server Error" + void httpServerError(); + + // output headers indicating "204 No Content" and no further message + void httpNoContent(); + + // output standard headers indicating "200 Success". You can change the + // type of the data you're outputting or also add extra headers like + // "Refresh: 1". Extra headers should each be terminated with CRLF. + void httpSuccess(const char *contentType = "text/html; charset=utf-8", + const char *extraHeaders = NULL); + + // used with POST to output a redirect to another URL. This is + // preferable to outputting HTML from a post because you can then + // refresh the page without getting a "resubmit form" dialog. + void httpSeeOther(const char *otherURL); + + // implementation of write used to implement Print interface + virtual size_t write(uint8_t); + virtual size_t write(const uint8_t *buffer, size_t size); + + // tells if there is anything to process + uint8_t available(); + + // Flush the send buffer + void flushBuf(); + + // Close the current connection and flush ethernet buffers + void reset(); +private: + EthernetServer m_server; + EthernetClient m_client; + const char *m_urlPrefix; + + unsigned char m_pushback[32]; + unsigned char m_pushbackDepth; + + int m_contentLength; + char m_authCredentials[51]; + bool m_readingContent; + + Command *m_failureCmd; + Command *m_defaultCmd; + struct CommandMap + { + const char *verb; + Command *cmd; + } m_commands[WEBDUINO_COMMANDS_COUNT]; + unsigned char m_cmdCount; + UrlPathCommand *m_urlPathCmd; + + uint8_t m_buffer[WEBDUINO_OUTPUT_BUFFER_SIZE]; + uint8_t m_bufFill; + + void getRequest(WebServer::ConnectionType &type, char *request, int *length); + bool dispatchCommand(ConnectionType requestType, char *verb, + bool tail_complete); + void processHeaders(); + void outputCheckboxOrRadio(const char *element, const char *name, + const char *val, const char *label, + bool selected); + + static void defaultFailCmd(WebServer &server, ConnectionType type, + char *url_tail, bool tail_complete); + void noRobots(ConnectionType type); + void favicon(ConnectionType type); +}; + +/* define this macro if you want to include the header in a sketch source + file but not define any of the implementation. This is useful if + multiple source files are using the Webduino class. */ +#ifndef WEBDUINO_NO_IMPLEMENTATION + +/******************************************************************** + * IMPLEMENTATION + ********************************************************************/ + +WebServer::WebServer(const char *urlPrefix, uint16_t port) : + m_server(port), + m_client(), + m_urlPrefix(urlPrefix), + m_pushbackDepth(0), + m_contentLength(0), + m_failureCmd(&defaultFailCmd), + m_defaultCmd(&defaultFailCmd), + m_cmdCount(0), + m_urlPathCmd(NULL), + m_bufFill(0) +{ +} + +P(webServerHeader) = "Server: Webduino/" WEBDUINO_VERSION_STRING CRLF; + +void WebServer::begin() +{ + m_server.begin(); +} + +void WebServer::setDefaultCommand(Command *cmd) +{ + m_defaultCmd = cmd; +} + +void WebServer::setFailureCommand(Command *cmd) +{ + m_failureCmd = cmd; +} + +void WebServer::addCommand(const char *verb, Command *cmd) +{ + if (m_cmdCount < SIZE(m_commands)) + { + m_commands[m_cmdCount].verb = verb; + m_commands[m_cmdCount++].cmd = cmd; + } +} + +void WebServer::setUrlPathCommand(UrlPathCommand *cmd) +{ + m_urlPathCmd = cmd; +} + +size_t WebServer::write(uint8_t ch) +{ + m_buffer[m_bufFill++] = ch; + + if(m_bufFill == sizeof(m_buffer)) + { + m_client.write(m_buffer, sizeof(m_buffer)); + m_bufFill = 0; + } + + return sizeof(ch); +} + +size_t WebServer::write(const uint8_t *buffer, size_t size) +{ + flushBuf(); //Flush any buffered output + return m_client.write(buffer, size); +} + +void WebServer::flushBuf() +{ + if(m_bufFill > 0) + { + m_client.write(m_buffer, m_bufFill); + m_bufFill = 0; + } +} + +void WebServer::writeP(const unsigned char *data, size_t length) +{ + // copy data out of program memory into local storage + + while (length--) + { + write(pgm_read_byte(data++)); + } +} + +void WebServer::printP(const unsigned char *str) +{ + // copy data out of program memory into local storage + + while (uint8_t value = pgm_read_byte(str++)) + { + write(value); + } +} + +void WebServer::printCRLF() +{ + print(CRLF); +} + +void WebServer::printf(char *fmt, ... ) +{ + char tmp[128]; // resulting string limited to 128 chars + va_list args; + va_start (args, fmt ); + vsnprintf(tmp, 128, fmt, args); + va_end (args); + print(tmp); +} + +#ifdef F +void WebServer::printf(const __FlashStringHelper *format, ... ) +{ + char buf[128]; // resulting string limited to 128 chars + va_list ap; + va_start(ap, format); +#ifdef __AVR__ + vsnprintf_P(buf, sizeof(buf), (const char *)format, ap); // progmem for AVR +#else + vsnprintf(buf, sizeof(buf), (const char *)format, ap); // for the rest of the world +#endif + va_end(ap); + print(buf); +} +#endif + +bool WebServer::dispatchCommand(ConnectionType requestType, char *verb, + bool tail_complete) +{ + // if there is no URL, i.e. we have a prefix and it's requested without a + // trailing slash or if the URL is just the slash + if ((verb[0] == 0) || ((verb[0] == '/') && (verb[1] == 0))) + { + m_defaultCmd(*this, requestType, (char*)"", tail_complete); + return true; + } + // if the URL is just a slash followed by a question mark + // we're looking at the default command with GET parameters passed + if ((verb[0] == '/') && (verb[1] == '?')) + { + verb+=2; // skip over the "/?" part of the url + m_defaultCmd(*this, requestType, verb, tail_complete); + return true; + } + // We now know that the URL contains at least one character. And, + // if the first character is a slash, there's more after it. + if (verb[0] == '/') + { + uint8_t i; + char *qm_loc; + uint16_t verb_len; + uint8_t qm_offset; + // Skip over the leading "/", because it makes the code more + // efficient and easier to understand. + verb++; + // Look for a "?" separating the filename part of the URL from the + // parameters. If it's not there, compare to the whole URL. + qm_loc = strchr(verb, '?'); + verb_len = (qm_loc == NULL) ? strlen(verb) : (qm_loc - verb); + qm_offset = (qm_loc == NULL) ? 0 : 1; + for (i = 0; i < m_cmdCount; ++i) + { + if ((verb_len == strlen(m_commands[i].verb)) + && (strncmp(verb, m_commands[i].verb, verb_len) == 0)) + { + // Skip over the "verb" part of the URL (and the question + // mark, if present) when passing it to the "action" routine + m_commands[i].cmd(*this, requestType, + verb + verb_len + qm_offset, + tail_complete); + return true; + } + } + // Check if UrlPathCommand is assigned. + if (m_urlPathCmd != NULL) + { + // Initialize with null bytes, so number of parts can be determined. + char *url_path[WEBDUINO_URL_PATH_COMMAND_LENGTH] = {0}; + uint8_t part = 0; + + // URL path should be terminated with null byte. + *(verb + verb_len) = 0; + + // First URL path part is at the start of verb. + url_path[part++] = verb; + // Replace all slashes ('/') with a null byte so every part of the URL + // path is a seperate string. Add every char following a '/' as a new + // part of the URL, even if that char is a '/' (which will be replaced + // with a null byte). + for (char * p = verb; p < verb + verb_len; p++) + { + if (*p == '/') + { + *p = 0; + url_path[part++] = p + 1; + // Don't try to assign out of array bounds. + if (part == WEBDUINO_URL_PATH_COMMAND_LENGTH) break; + } + } + m_urlPathCmd(*this, requestType, url_path, + verb + verb_len + qm_offset, tail_complete); + return true; + } + } + return false; +} + +// processConnection with a default buffer +void WebServer::processConnection() +{ + char request[WEBDUINO_DEFAULT_REQUEST_LENGTH]; + int request_len = WEBDUINO_DEFAULT_REQUEST_LENGTH; + processConnection(request, &request_len); +} + +void WebServer::processConnection(char *buff, int *bufflen) +{ + int urlPrefixLen = strlen(m_urlPrefix); + + m_client = m_server.available(); + + if (m_client) { + m_readingContent = false; + buff[0] = 0; + ConnectionType requestType = INVALID; +#if WEBDUINO_SERIAL_DEBUGGING > 1 + Serial.println("*** checking request ***"); +#endif + getRequest(requestType, buff, bufflen); +#if WEBDUINO_SERIAL_DEBUGGING > 1 + Serial.print("*** requestType = "); + Serial.print((int)requestType); + Serial.print(", request = \""); + Serial.print(buff); + Serial.println("\" ***"); +#endif + + // don't even look further at invalid requests. + // this is done to prevent Webduino from hanging + // - when there are illegal requests, + // - when someone contacts it through telnet rather than proper HTTP, + // - etc. + if (requestType != INVALID) + { + processHeaders(); +#if WEBDUINO_SERIAL_DEBUGGING > 1 + Serial.println("*** headers complete ***"); +#endif + + if (strcmp(buff, "/robots.txt") == 0) + { + noRobots(requestType); + } + else if (strcmp(buff, "/favicon.ico") == 0) + { + favicon(requestType); + } + } + // Only try to dispatch command if request type and prefix are correct. + // Fix by quarencia. + if (requestType == INVALID || + strncmp(buff, m_urlPrefix, urlPrefixLen) != 0) + { + m_failureCmd(*this, requestType, buff, (*bufflen) >= 0); + } + else if (!dispatchCommand(requestType, buff + urlPrefixLen, + (*bufflen) >= 0)) + { + m_failureCmd(*this, requestType, buff, (*bufflen) >= 0); + } + + flushBuf(); + +#if WEBDUINO_SERIAL_DEBUGGING > 1 + Serial.println("*** stopping connection ***"); +#endif + reset(); + } +} + +bool WebServer::checkCredentials(const char authCredentials[45]) +{ + char basic[7] = "Basic "; + if((0 == strncmp(m_authCredentials,basic,6)) && + (0 == strcmp(authCredentials, m_authCredentials + 6))) return true; + return false; +} + +void WebServer::httpFail() +{ + P(failMsg1) = "HTTP/1.0 400 Bad Request" CRLF; + printP(failMsg1); + +#ifndef WEBDUINO_SUPRESS_SERVER_HEADER + printP(webServerHeader); +#endif + + P(failMsg2) = + "Content-Type: text/html" CRLF + CRLF + WEBDUINO_FAIL_MESSAGE; + + printP(failMsg2); +} + +void WebServer::defaultFailCmd(WebServer &server, + WebServer::ConnectionType type, + char *url_tail, + bool tail_complete) +{ + server.httpFail(); +} + +void WebServer::noRobots(ConnectionType type) +{ + httpSuccess("text/plain"); + if (type != HEAD) + { + P(allowNoneMsg) = "User-agent: *" CRLF "Disallow: /" CRLF; + printP(allowNoneMsg); + } +} + +void WebServer::favicon(ConnectionType type) +{ + httpSuccess("image/x-icon","Cache-Control: max-age=31536000\r\n"); + if (type != HEAD) + { + P(faviconIco) = WEBDUINO_FAVICON_DATA; + writeP(faviconIco, sizeof(faviconIco)); + } +} + +void WebServer::httpUnauthorized() +{ + P(unauthMsg1) = "HTTP/1.0 401 Authorization Required" CRLF; + printP(unauthMsg1); + +#ifndef WEBDUINO_SUPRESS_SERVER_HEADER + printP(webServerHeader); +#endif + + P(unauthMsg2) = + "Content-Type: text/html" CRLF + "WWW-Authenticate: Basic realm=\"" WEBDUINO_AUTH_REALM "\"" CRLF + CRLF + WEBDUINO_AUTH_MESSAGE; + + printP(unauthMsg2); +} + +void WebServer::httpServerError() +{ + P(servErrMsg1) = "HTTP/1.0 500 Internal Server Error" CRLF; + printP(servErrMsg1); + +#ifndef WEBDUINO_SUPRESS_SERVER_HEADER + printP(webServerHeader); +#endif + + P(servErrMsg2) = + "Content-Type: text/html" CRLF + CRLF + WEBDUINO_SERVER_ERROR_MESSAGE; + + printP(servErrMsg2); +} + +void WebServer::httpNoContent() +{ + P(noContentMsg1) = "HTTP/1.0 204 NO CONTENT" CRLF; + printP(noContentMsg1); + +#ifndef WEBDUINO_SUPRESS_SERVER_HEADER + printP(webServerHeader); +#endif + + P(noContentMsg2) = + CRLF + CRLF; + + printP(noContentMsg2); +} + +void WebServer::httpSuccess(const char *contentType, + const char *extraHeaders) +{ + P(successMsg1) = "HTTP/1.0 200 OK" CRLF; + printP(successMsg1); + +#ifndef WEBDUINO_SUPRESS_SERVER_HEADER + printP(webServerHeader); +#endif + + P(successMsg2) = + "Access-Control-Allow-Origin: *" CRLF + "Content-Type: "; + + printP(successMsg2); + print(contentType); + printCRLF(); + if (extraHeaders) + print(extraHeaders); + printCRLF(); +} + +void WebServer::httpSeeOther(const char *otherURL) +{ + P(seeOtherMsg1) = "HTTP/1.0 303 See Other" CRLF; + printP(seeOtherMsg1); + +#ifndef WEBDUINO_SUPRESS_SERVER_HEADER + printP(webServerHeader); +#endif + + P(seeOtherMsg2) = "Location: "; + printP(seeOtherMsg2); + print(otherURL); + printCRLF(); + printCRLF(); +} + +int WebServer::read() +{ + if (!m_client) + return -1; + + if (m_pushbackDepth == 0) + { + unsigned long timeoutTime = millis() + WEBDUINO_READ_TIMEOUT_IN_MS; + + while (m_client.connected()) + { + // stop reading the socket early if we get to content-length + // characters in the POST. This is because some clients leave + // the socket open because they assume HTTP keep-alive. + if (m_readingContent) + { + if (m_contentLength == 0) + { +#if WEBDUINO_SERIAL_DEBUGGING > 1 + Serial.println("\n*** End of content, terminating connection"); +#endif + return -1; + } + } + + int ch = m_client.read(); + + // if we get a character, return it, otherwise continue in while + // loop, checking connection status + if (ch != -1) + { + // count character against content-length + if (m_readingContent) + { + --m_contentLength; + } + +#if WEBDUINO_SERIAL_DEBUGGING + if (ch == '\r') + Serial.print(""); + else if (ch == '\n') + Serial.println(""); + else + Serial.print((char)ch); +#endif + return ch; + } + else + { + unsigned long now = millis(); + if (now > timeoutTime) + { + // connection timed out, destroy client, return EOF +#if WEBDUINO_SERIAL_DEBUGGING + Serial.println("*** Connection timed out"); +#endif + reset(); + return -1; + } + } + } + + // connection lost, return EOF +#if WEBDUINO_SERIAL_DEBUGGING + Serial.println("*** Connection lost"); +#endif + return -1; + } + else + return m_pushback[--m_pushbackDepth]; +} + +void WebServer::push(int ch) +{ + // don't allow pushing EOF + if (ch == -1) + return; + + m_pushback[m_pushbackDepth++] = ch; + // can't raise error here, so just replace last char over and over + if (m_pushbackDepth == SIZE(m_pushback)) + m_pushbackDepth = SIZE(m_pushback) - 1; +} + +void WebServer::reset() +{ + m_pushbackDepth = 0; + m_client.flush(); + m_client.stop(); +} + +bool WebServer::expect(const char *str) +{ + const char *curr = str; + while (*curr != 0) + { + int ch = read(); + if (ch != *curr++) + { + // push back ch and the characters we accepted + push(ch); + while (--curr != str) + push(curr[-1]); + return false; + } + } + return true; +} + +bool WebServer::readInt(int &number) +{ + bool negate = false; + bool gotNumber = false; + int ch; + number = 0; + + // absorb whitespace + do + { + ch = read(); + } while (ch == ' ' || ch == '\t'); + + // check for leading minus sign + if (ch == '-') + { + negate = true; + ch = read(); + } + + // read digits to update number, exit when we find non-digit + while (ch >= '0' && ch <= '9') + { + gotNumber = true; + number = number * 10 + ch - '0'; + ch = read(); + } + + push(ch); + if (negate) + number = -number; + return gotNumber; +} + +void WebServer::readHeader(char *value, int valueLen) +{ + int ch; + memset(value, 0, valueLen); + --valueLen; + + // absorb whitespace + do + { + ch = read(); + } while (ch == ' ' || ch == '\t'); + + // read rest of line + do + { + if (valueLen > 1) + { + *value++=ch; + --valueLen; + } + ch = read(); + } while (ch != '\r'); + push(ch); +} + +bool WebServer::readPOSTparam(char *name, int nameLen, + char *value, int valueLen) +{ + // assume name is at current place in stream + int ch; + // to not to miss the last parameter + bool foundSomething = false; + + // clear out name and value so they'll be NUL terminated + memset(name, 0, nameLen); + memset(value, 0, valueLen); + + // decrement length so we don't write into NUL terminator + --nameLen; + --valueLen; + + while ((ch = read()) != -1) + { + foundSomething = true; + if (ch == '+') + { + ch = ' '; + } + else if (ch == '=') + { + /* that's end of name, so switch to storing in value */ + nameLen = 0; + continue; + } + else if (ch == '&') + { + /* that's end of pair, go away */ + return true; + } + else if (ch == '%') + { + /* handle URL encoded characters by converting back to original form */ + int ch1 = read(); + int ch2 = read(); + if (ch1 == -1 || ch2 == -1) + return false; + char hex[3] = { (char)ch1, (char)ch2, '\0' }; + ch = strtoul(hex, NULL, 16); + } + + // output the new character into the appropriate buffer or drop it if + // there's no room in either one. This code will malfunction in the + // case where the parameter name is too long to fit into the name buffer, + // but in that case, it will just overflow into the value buffer so + // there's no harm. + if (nameLen > 0) + { + *name++ = ch; + --nameLen; + } + else if (valueLen > 0) + { + *value++ = ch; + --valueLen; + } + } + + if (foundSomething) + { + // if we get here, we have one last parameter to serve + return true; + } + else + { + // if we get here, we hit the end-of-file, so POST is over and there + // are no more parameters + return false; + } +} + +/* Retrieve a parameter that was encoded as part of the URL, stored in + * the buffer pointed to by *tail. tail is updated to point just past + * the last character read from the buffer. */ +URLPARAM_RESULT WebServer::nextURLparam(char **tail, char *name, int nameLen, + char *value, int valueLen) +{ + // assume name is at current place in stream + char ch, hex[3]; + URLPARAM_RESULT result = URLPARAM_OK; + char *s = *tail; + bool keep_scanning = true; + bool need_value = true; + + // clear out name and value so they'll be NUL terminated + memset(name, 0, nameLen); + memset(value, 0, valueLen); + + if (*s == 0) + return URLPARAM_EOS; + // Read the keyword name + while (keep_scanning) + { + ch = *s++; + switch (ch) + { + case 0: + s--; // Back up to point to terminating NUL + // Fall through to "stop the scan" code + case '&': + /* that's end of pair, go away */ + keep_scanning = false; + need_value = false; + break; + case '+': + ch = ' '; + break; + case '%': + /* handle URL encoded characters by converting back + * to original form */ + if ((hex[0] = *s++) == 0) + { + s--; // Back up to NUL + keep_scanning = false; + need_value = false; + } + else + { + if ((hex[1] = *s++) == 0) + { + s--; // Back up to NUL + keep_scanning = false; + need_value = false; + } + else + { + hex[2] = 0; + ch = strtoul(hex, NULL, 16); + } + } + break; + case '=': + /* that's end of name, so switch to storing in value */ + keep_scanning = false; + break; + } + + + // check against 1 so we don't overwrite the final NUL + if (keep_scanning && (nameLen > 1)) + { + *name++ = ch; + --nameLen; + } + else if(keep_scanning) + result = URLPARAM_NAME_OFLO; + } + + if (need_value && (*s != 0)) + { + keep_scanning = true; + while (keep_scanning) + { + ch = *s++; + switch (ch) + { + case 0: + s--; // Back up to point to terminating NUL + // Fall through to "stop the scan" code + case '&': + /* that's end of pair, go away */ + keep_scanning = false; + need_value = false; + break; + case '+': + ch = ' '; + break; + case '%': + /* handle URL encoded characters by converting back to original form */ + if ((hex[0] = *s++) == 0) + { + s--; // Back up to NUL + keep_scanning = false; + need_value = false; + } + else + { + if ((hex[1] = *s++) == 0) + { + s--; // Back up to NUL + keep_scanning = false; + need_value = false; + } + else + { + hex[2] = 0; + ch = strtoul(hex, NULL, 16); + } + + } + break; + } + + + // check against 1 so we don't overwrite the final NUL + if (keep_scanning && (valueLen > 1)) + { + *value++ = ch; + --valueLen; + } + else if(keep_scanning) + result = (result == URLPARAM_OK) ? + URLPARAM_VALUE_OFLO : + URLPARAM_BOTH_OFLO; + } + } + *tail = s; + return result; +} + + + +// Read and parse the first line of the request header. +// The "command" (GET/HEAD/POST) is translated into a numeric value in type. +// The URL is stored in request, up to the length passed in length +// NOTE 1: length must include one byte for the terminating NUL. +// NOTE 2: request is NOT checked for NULL, nor length for a value < 1. +// Reading stops when the code encounters a space, CR, or LF. If the HTTP +// version was supplied by the client, it will still be waiting in the input +// stream when we exit. +// +// On return, length contains the amount of space left in request. If it's +// less than 0, the URL was longer than the buffer, and part of it had to +// be discarded. + +void WebServer::getRequest(WebServer::ConnectionType &type, + char *request, int *length) +{ + --*length; // save room for NUL + + type = INVALID; + + // store the HTTP method line of the request + if (expect("GET ")) + type = GET; + else if (expect("HEAD ")) + type = HEAD; + else if (expect("POST ")) + type = POST; + else if (expect("PUT ")) + type = PUT; + else if (expect("DELETE ")) + type = DELETE; + else if (expect("PATCH ")) + type = PATCH; + + // if it doesn't start with any of those, we have an unknown method + // so just get out of here + else + return; + + int ch; + while ((ch = read()) != -1) + { + // stop storing at first space or end of line + if (ch == ' ' || ch == '\n' || ch == '\r') + { + break; + } + if (*length > 0) + { + *request = ch; + ++request; + } + --*length; + } + // NUL terminate + *request = 0; +} + +void WebServer::processHeaders() +{ + // look for three things: the Content-Length header, the Authorization + // header, and the double-CRLF that ends the headers. + + // empty the m_authCredentials before every run of this function. + // otherwise users who don't send an Authorization header would be treated + // like the last user who tried to authenticate (possibly successful) + m_authCredentials[0]=0; + + while (1) + { + if (expect("Content-Length:")) + { + readInt(m_contentLength); +#if WEBDUINO_SERIAL_DEBUGGING > 1 + Serial.print("\n*** got Content-Length of "); + Serial.print(m_contentLength); + Serial.print(" ***"); +#endif + continue; + } + + if (expect("Authorization:")) + { + readHeader(m_authCredentials,51); +#if WEBDUINO_SERIAL_DEBUGGING > 1 + Serial.print("\n*** got Authorization: of "); + Serial.print(m_authCredentials); + Serial.print(" ***"); +#endif + continue; + } + + if (expect(CRLF CRLF)) + { + m_readingContent = true; + return; + } + + // no expect checks hit, so just absorb a character and try again + if (read() == -1) + { + return; + } + } +} + +void WebServer::outputCheckboxOrRadio(const char *element, const char *name, + const char *val, const char *label, + bool selected) +{ + P(cbPart1a) = "