Browse Source

Add ESP32 WiFi interface (#11209)

FLSUN-QQS
Hadrien Jouet 2 years ago
committed by Scott Lahteine
parent
commit
0278ad0a6d
93 changed files with 915 additions and 22 deletions
  1. +1
    -0
      .travis.yml
  2. +2
    -0
      Marlin/Configuration_adv.h
  3. +17
    -3
      Marlin/src/HAL/HAL_ESP32/HAL.cpp
  4. +4
    -1
      Marlin/src/HAL/HAL_ESP32/HAL.h
  5. +232
    -0
      Marlin/src/HAL/HAL_ESP32/WebSocketSerial.cpp
  6. +99
    -0
      Marlin/src/HAL/HAL_ESP32/WebSocketSerial.h
  7. +2
    -11
      Marlin/src/HAL/HAL_ESP32/ota.cpp
  8. +49
    -0
      Marlin/src/HAL/HAL_ESP32/web.cpp
  9. +21
    -0
      Marlin/src/HAL/HAL_ESP32/web.h
  10. +55
    -0
      Marlin/src/HAL/HAL_ESP32/wifi.cpp
  11. +27
    -0
      Marlin/src/HAL/HAL_ESP32/wifi.h
  12. +1
    -1
      Marlin/src/HAL/HAL_LINUX/hardware/LinearAxis.cpp
  13. +3
    -3
      Marlin/src/core/serial.h
  14. +1
    -1
      Marlin/src/inc/SanityCheck.h
  15. +19
    -0
      buildroot/share/tests/esp32-tests
  16. +2
    -0
      config/default/Configuration_adv.h
  17. +2
    -0
      config/examples/3DFabXYZ/Migbot/Configuration_adv.h
  18. +2
    -0
      config/examples/AlephObjects/TAZ4/Configuration_adv.h
  19. +2
    -0
      config/examples/AliExpress/UM2pExt/Configuration_adv.h
  20. +2
    -0
      config/examples/Anet/A2/Configuration_adv.h
  21. +2
    -0
      config/examples/Anet/A2plus/Configuration_adv.h
  22. +2
    -0
      config/examples/Anet/A6/Configuration_adv.h
  23. +2
    -0
      config/examples/Anet/A8/Configuration_adv.h
  24. +2
    -0
      config/examples/AnyCubic/i3/Configuration_adv.h
  25. +2
    -0
      config/examples/ArmEd/Configuration_adv.h
  26. +2
    -0
      config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  27. +2
    -0
      config/examples/BIBO/TouchX/default/Configuration_adv.h
  28. +2
    -0
      config/examples/BQ/Hephestos/Configuration_adv.h
  29. +2
    -0
      config/examples/BQ/Hephestos_2/Configuration_adv.h
  30. +2
    -0
      config/examples/BQ/WITBOX/Configuration_adv.h
  31. +2
    -0
      config/examples/Cartesio/Configuration_adv.h
  32. +2
    -0
      config/examples/Creality/CR-10/Configuration_adv.h
  33. +2
    -0
      config/examples/Creality/CR-10S/Configuration_adv.h
  34. +2
    -0
      config/examples/Creality/CR-10_5S/Configuration_adv.h
  35. +2
    -0
      config/examples/Creality/CR-10mini/Configuration_adv.h
  36. +2
    -0
      config/examples/Creality/CR-8/Configuration_adv.h
  37. +2
    -0
      config/examples/Creality/Ender-2/Configuration_adv.h
  38. +2
    -0
      config/examples/Creality/Ender-3/Configuration_adv.h
  39. +2
    -0
      config/examples/Creality/Ender-4/Configuration_adv.h
  40. +2
    -0
      config/examples/Einstart-S/Configuration_adv.h
  41. +2
    -0
      config/examples/Felix/Configuration_adv.h
  42. +2
    -0
      config/examples/FlashForge/CreatorPro/Configuration_adv.h
  43. +2
    -0
      config/examples/FolgerTech/i3-2020/Configuration_adv.h
  44. +2
    -0
      config/examples/Formbot/Raptor/Configuration_adv.h
  45. +2
    -0
      config/examples/Formbot/T_Rex_2+/Configuration_adv.h
  46. +2
    -0
      config/examples/Formbot/T_Rex_3/Configuration_adv.h
  47. +2
    -0
      config/examples/Geeetech/A10M/Configuration_adv.h
  48. +2
    -0
      config/examples/Geeetech/A20M/Configuration_adv.h
  49. +2
    -0
      config/examples/Geeetech/MeCreator2/Configuration_adv.h
  50. +2
    -0
      config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
  51. +2
    -0
      config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
  52. +2
    -0
      config/examples/Infitary/i3-M508/Configuration_adv.h
  53. +2
    -0
      config/examples/JGAurora/A5/Configuration_adv.h
  54. +2
    -0
      config/examples/MakerParts/Configuration_adv.h
  55. +2
    -0
      config/examples/Malyan/M150/Configuration_adv.h
  56. +2
    -0
      config/examples/Malyan/M200/Configuration_adv.h
  57. +2
    -0
      config/examples/Micromake/C1/enhanced/Configuration_adv.h
  58. +2
    -0
      config/examples/Mks/Robin/Configuration_adv.h
  59. +2
    -0
      config/examples/Mks/Sbase/Configuration_adv.h
  60. +2
    -0
      config/examples/RapideLite/RL200/Configuration_adv.h
  61. +2
    -0
      config/examples/RigidBot/Configuration_adv.h
  62. +2
    -0
      config/examples/SCARA/Configuration_adv.h
  63. +2
    -0
      config/examples/Sanguinololu/Configuration_adv.h
  64. +2
    -0
      config/examples/TheBorg/Configuration_adv.h
  65. +2
    -0
      config/examples/TinyBoy2/Configuration_adv.h
  66. +2
    -0
      config/examples/Tronxy/X3A/Configuration_adv.h
  67. +2
    -0
      config/examples/Tronxy/X5S-2E/Configuration_adv.h
  68. +2
    -0
      config/examples/UltiMachine/Archim1/Configuration_adv.h
  69. +2
    -0
      config/examples/UltiMachine/Archim2/Configuration_adv.h
  70. +2
    -0
      config/examples/VORONDesign/Configuration_adv.h
  71. +2
    -0
      config/examples/Velleman/K8200/Configuration_adv.h
  72. +2
    -0
      config/examples/Velleman/K8400/Configuration_adv.h
  73. +2
    -0
      config/examples/WASP/PowerWASP/Configuration_adv.h
  74. +2
    -0
      config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  75. +2
    -0
      config/examples/delta/Anycubic/Kossel/Configuration_adv.h
  76. +2
    -0
      config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  77. +2
    -0
      config/examples/delta/FLSUN/kossel/Configuration_adv.h
  78. +2
    -0
      config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  79. +2
    -0
      config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h
  80. +2
    -0
      config/examples/delta/MKS/SBASE/Configuration_adv.h
  81. +2
    -0
      config/examples/delta/Tevo Little Monster/Configuration_adv.h
  82. +2
    -0
      config/examples/delta/generic/Configuration_adv.h
  83. +2
    -0
      config/examples/delta/kossel_mini/Configuration_adv.h
  84. +2
    -0
      config/examples/delta/kossel_xl/Configuration_adv.h
  85. +2
    -0
      config/examples/gCreate/gMax1.5+/Configuration_adv.h
  86. +2
    -0
      config/examples/makibox/Configuration_adv.h
  87. +2
    -0
      config/examples/tvrrug/Round2/Configuration_adv.h
  88. +2
    -0
      config/examples/wt150/Configuration_adv.h
  89. +37
    -0
      data/www/index.html
  90. BIN
      data/www/marlin-logo.png
  91. +166
    -0
      data/www/marlin.css
  92. +24
    -0
      data/www/marlin.js
  93. +9
    -2
      platformio.ini

+ 1
- 0
.travis.yml View File

@ -23,6 +23,7 @@ env:
#- TEST_PLATFORM="STM32F1"
- TEST_PLATFORM="teensy35"
- TEST_PLATFORM="linux_native"
- TEST_PLATFORM="esp32"
addons:
apt:


+ 2
- 0
Marlin/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 17
- 3
Marlin/src/HAL/HAL_ESP32/HAL.cpp View File

@ -34,7 +34,14 @@
#include "../../inc/MarlinConfigPre.h"
#if ENABLED(WIFISUPPORT)
#include "ota.h"
#include <ESPAsyncWebServer.h>
#include "wifi.h"
#if ENABLED(OTASUPPORT)
#include "ota.h"
#endif
#if ENABLED(WEBSUPPORT)
#include "web.h"
#endif
#endif
// --------------------------------------------------------------------------
@ -83,14 +90,21 @@ esp_adc_cal_characteristics_t characteristics;
void HAL_init(void) {
#if ENABLED(WIFISUPPORT)
OTA_init();
wifi_init();
#if ENABLED(OTASUPPORT)
OTA_init();
#endif
#if ENABLED(WEBSUPPORT)
web_init();
#endif
server.begin();
#endif
i2s_init();
}
void HAL_idletask(void) {
#if ENABLED(WIFISUPPORT)
#if ENABLED(OTASUPPORT)
OTA_handle();
#endif
}


+ 4
- 1
Marlin/src/HAL/HAL_ESP32/HAL.h View File

@ -47,14 +47,17 @@
#include "HAL_timers_ESP32.h"
#include "WebSocketSerial.h"
// --------------------------------------------------------------------------
// Defines
// --------------------------------------------------------------------------
extern portMUX_TYPE spinlock;
#define NUM_SERIAL 1
#define NUM_SERIAL 2
#define MYSERIAL0 Serial
#define MYSERIAL1 webSocketSerial
#define CRITICAL_SECTION_START portENTER_CRITICAL(&spinlock)
#define CRITICAL_SECTION_END portEXIT_CRITICAL(&spinlock)


+ 232
- 0
Marlin/src/HAL/HAL_ESP32/WebSocketSerial.cpp View File

@ -0,0 +1,232 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifdef ARDUINO_ARCH_ESP32
#include "../../inc/MarlinConfig.h"
#if ENABLED(WIFISUPPORT)
#include "WebSocketSerial.h"
#include "wifi.h"
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
struct ring_buffer_r {
unsigned char buffer[RX_BUFFER_SIZE];
volatile ring_buffer_pos_t head, tail;
};
struct ring_buffer_t {
unsigned char buffer[256];
volatile uint8_t head, tail;
};
ring_buffer_r rx_buffer = { { 0 }, 0, 0 };
ring_buffer_t tx_buffer = { { 0 }, 0, 0 };
static bool _written;
#if ENABLED(EMERGENCY_PARSER)
static EmergencyParser::State emergency_state; // = EP_RESET
#endif
AsyncWebSocket ws("/ws"); // access at ws://[esp ip]/ws
FORCE_INLINE int next_rx_index(const int i) { return (ring_buffer_pos_t)(i + 1) & (ring_buffer_pos_t)(RX_BUFFER_SIZE - 1); }
FORCE_INLINE int next_tx_index(const int i) { return (ring_buffer_pos_t)(i + 1) & (ring_buffer_pos_t)(TX_BUFFER_SIZE - 1); }
static void addToBuffer(uint8_t * const data, const size_t len) {
for (size_t i = 0; i < len; i++) {
ring_buffer_pos_t h = rx_buffer.head;
const ring_buffer_pos_t t = rx_buffer.tail, n = next_rx_index(h);
if (n != t) { rx_buffer.buffer[h] = data[i]; h = n; }
// TODO: buffer is full, handle?
rx_buffer.head = h;
}
}
// Handle WebSocket event
static void onEvent(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventType type, void * arg, uint8_t *data, size_t len) {
switch (type) {
case WS_EVT_CONNECT: client->ping(); break; // client connected
case WS_EVT_DISCONNECT: // client disconnected
case WS_EVT_ERROR: // error was received from the other end
case WS_EVT_PONG: break; // pong message was received (in response to a ping request maybe)
case WS_EVT_DATA: { // data packet
AwsFrameInfo * info = (AwsFrameInfo*)arg;
if (info->opcode == WS_TEXT || info->message_opcode == WS_TEXT)
addToBuffer(data, len);
}
}
}
// Public Methods
void WebSocketSerial::begin(const long baud_setting) {
ws.onEvent(onEvent);
server.addHandler(&ws); // attach AsyncWebSocket
}
void WebSocketSerial::end() { }
int WebSocketSerial::peek(void) {
const int v = rx_buffer.head == rx_buffer.tail ? -1 : rx_buffer.buffer[rx_buffer.tail];
return v;
}
int WebSocketSerial::read(void) {
const ring_buffer_pos_t h = rx_buffer.head, t = rx_buffer.tail;
if (h == t) return -1; // Nothing to read? Return now
const int v = rx_buffer.buffer[t];
rx_buffer.tail = (ring_buffer_pos_t)(t + 1) & (RX_BUFFER_SIZE - 1); // Advance tail
return v;
}
bool WebSocketSerial::available(void) {
const ring_buffer_pos_t h = rx_buffer.head, t = rx_buffer.tail;
return (ring_buffer_pos_t)(RX_BUFFER_SIZE + h - t) & (RX_BUFFER_SIZE - 1);
}
void WebSocketSerial::flush(void) {
ws.textAll("flush");
rx_buffer.tail = rx_buffer.head;
}
#if TX_BUFFER_SIZE
void WebSocketSerial::write(const uint8_t c) {
_written = true;
const uint8_t i = (tx_buffer.head + 1) & (TX_BUFFER_SIZE - 1);
// Store new char. head is always safe to move
tx_buffer.buffer[tx_buffer.head] = c;
tx_buffer.head = i;
if (c == '\n') {
ws.textAll(tx_buffer.buffer, tx_buffer.head);
tx_buffer.head = 0;
}
}
void WebSocketSerial::flushTx(void) {
ws.textAll("flushTx");
if (!_written) return;
}
#else
//void WebSocketSerial::write(const uint8_t c) { _written = true; }
//void WebSocketSerial::flushTx(void) { if (!_written) return; }
#endif
/**
* Imports from print.h
*/
void WebSocketSerial::print(char c, int base) { print((long)c, base); }
void WebSocketSerial::print(unsigned char b, int base) { print((unsigned long)b, base); }
void WebSocketSerial::print(int n, int base) { print((long)n, base); }
void WebSocketSerial::print(unsigned int n, int base) { print((unsigned long)n, base); }
void WebSocketSerial::print(long n, int base) {
if (base == 0)
write(n);
else if (base == 10) {
if (n < 0) { print('-'); n = -n; }
printNumber(n, 10);
}
else
printNumber(n, base);
}
void WebSocketSerial::print(unsigned long n, int base) {
if (base == 0) write(n); else printNumber(n, base);
}
void WebSocketSerial::print(double n, int digits) { printFloat(n, digits); }
void WebSocketSerial::println(void) { print('\r'); print('\n'); }
void WebSocketSerial::println(const String& s) { print(s); println(); }
void WebSocketSerial::println(const char c[]) { print(c); println(); }
void WebSocketSerial::println(char c, int base) { print(c, base); println(); }
void WebSocketSerial::println(unsigned char b, int base) { print(b, base); println(); }
void WebSocketSerial::println(int n, int base) { print(n, base); println(); }
void WebSocketSerial::println(unsigned int n, int base) { print(n, base); println(); }
void WebSocketSerial::println(long n, int base) { print(n, base); println(); }
void WebSocketSerial::println(unsigned long n, int base) { print(n, base); println(); }
void WebSocketSerial::println(double n, int digits) { print(n, digits); println(); }
// Private Methods
void WebSocketSerial::printNumber(unsigned long n, uint8_t base) {
if (n) {
unsigned char buf[8 * sizeof(long)]; // Enough space for base 2
int8_t i = 0;
while (n) {
buf[i++] = n % base;
n /= base;
}
while (i--)
print((char)(buf[i] + (buf[i] < 10 ? '0' : 'A' - 10)));
}
else
print('0');
}
void WebSocketSerial::printFloat(double number, uint8_t digits) {
// Handle negative numbers
if (number < 0.0) { print('-'); number = -number; }
// Round correctly so that print(1.999, 2) prints as "2.00"
// Use a lookup table for performance
constexpr double rounds[] = { 0.5, 0.05, 0.005, 0.0005, 0.00005, 0.000005, 0.0000005, 0.00000005 };
number += rounds[digits];
//number += pow(10, -(digits + 1)); // slower single-line equivalent
// Extract the integer part of the number and print it
unsigned long int_part = (unsigned long)number;
print(int_part);
// Print the decimal point, but only if there are digits beyond
double remainder = number - (double)int_part;
if (digits) {
print('.');
// Extract digits from the remainder one at a time
while (digits--) {
remainder *= 10.0;
const int toPrint = int(remainder);
print(toPrint);
remainder -= toPrint;
}
}
}
#endif // WIFISUPPORT
#endif // ARDUINO_ARCH_ESP32

+ 99
- 0
Marlin/src/HAL/HAL_ESP32/WebSocketSerial.h View File

@ -0,0 +1,99 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
#include "../../inc/MarlinConfig.h"
#include <WString.h>
#define DEC 10
#define HEX 16
#define OCT 8
#define BIN 2
#ifndef RX_BUFFER_SIZE
#define RX_BUFFER_SIZE 128
#endif
#ifndef TX_BUFFER_SIZE
#define TX_BUFFER_SIZE 32
#endif
#if TX_BUFFER_SIZE <= 0
#error "TX_BUFFER_SIZE is required for the WebSocket."
#endif
#if RX_BUFFER_SIZE > 256
typedef uint16_t ring_buffer_pos_t;
#else
typedef uint8_t ring_buffer_pos_t;
#endif
class WebSocketSerial {
public:
WebSocketSerial() {};
static void begin(const long);
static void end();
static int peek(void);
static int read(void);
static void flush(void);
static void flushTx(void);
static bool available(void);
static void write(const uint8_t c);
#if ENABLED(SERIAL_STATS_DROPPED_RX)
FORCE_INLINE static uint32_t dropped() { return 0; }
#endif
#if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
FORCE_INLINE static int rxMaxEnqueued() { return 0; }
#endif
FORCE_INLINE static void write(const char* str) { while (*str) write(*str++); }
FORCE_INLINE static void write(const uint8_t* buffer, size_t size) { while (size--) write(*buffer++); }
FORCE_INLINE static void print(const String& s) { for (int i = 0; i < (int)s.length(); i++) write(s[i]); }
FORCE_INLINE static void print(const char* str) { write(str); }
static void print(char, int = 0);
static void print(unsigned char, int = 0);
static void print(int, int = DEC);
static void print(unsigned int, int = DEC);
static void print(long, int = DEC);
static void print(unsigned long, int = DEC);
static void print(double, int = 2);
static void println(const String& s);
static void println(const char[]);
static void println(char, int = 0);
static void println(unsigned char, int = 0);
static void println(int, int = DEC);
static void println(unsigned int, int = DEC);
static void println(long, int = DEC);
static void println(unsigned long, int = DEC);
static void println(double, int = 2);
static void println(void);
operator bool() { return true; }
private:
static void printNumber(unsigned long, const uint8_t);
static void printFloat(double, uint8_t);
};
extern WebSocketSerial webSocketSerial;

+ 2
- 11
Marlin/src/HAL/HAL_ESP32/ota.cpp View File

@ -21,7 +21,7 @@
#include "../../inc/MarlinConfigPre.h"
#if ENABLED(WIFISUPPORT)
#if ENABLED(OTASUPPORT)
#include <WiFi.h>
#include <ESPmDNS.h>
@ -30,15 +30,6 @@
#include "driver/timer.h"
void OTA_init() {
WiFi.mode(WIFI_STA);
WiFi.begin(WIFI_SSID, WIFI_PWD);
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
Serial.println("Connection Failed! Rebooting...");
delay(5000);
ESP.restart();
}
ArduinoOTA
.onStart([]() {
timer_pause(TIMER_GROUP_0, TIMER_0);
@ -76,6 +67,6 @@ void OTA_handle() {
ArduinoOTA.handle();
}
#endif // WIFISUPPORT
#endif // OTASUPPORT
#endif // ARDUINO_ARCH_ESP32

+ 49
- 0
Marlin/src/HAL/HAL_ESP32/web.cpp View File

@ -0,0 +1,49 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef ARDUINO_ARCH_ESP32
#include "../../inc/MarlinConfigPre.h"
#if ENABLED(WEBSUPPORT)
#include "../../core/serial.h"
#include "FS.h"
#include "SPIFFS.h"
#include "wifi.h"
AsyncEventSource events("/events"); // event source (Server-Sent events)
void onNotFound(AsyncWebServerRequest *request){
request->send(404);
}
void web_init() {
server.addHandler(&events); // attach AsyncEventSource
if (SPIFFS.begin()) {
server.serveStatic("/", SPIFFS, "/www").setDefaultFile("index.html");
server.onNotFound(onNotFound);
}
else
SERIAL_ECHO_MSG("SPIFFS Mount Failed");
}
#endif // WEBSUPPORT
#endif // ARDUINO_ARCH_ESP32

+ 21
- 0
Marlin/src/HAL/HAL_ESP32/web.h View File

@ -0,0 +1,21 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
void web_init();

+ 55
- 0
Marlin/src/HAL/HAL_ESP32/wifi.cpp View File

@ -0,0 +1,55 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef ARDUINO_ARCH_ESP32
#include "../../inc/MarlinConfigPre.h"
#if ENABLED(WIFISUPPORT)
#include <WiFi.h>
#include <ESPmDNS.h>
#include <ESPAsyncWebServer.h>
#include "wifi.h"
AsyncWebServer server(80);
#ifndef WIFI_HOSTNAME
#define WIFI_HOSTNAME DEFAULT_WIFI_HOSTNAME
#endif
void wifi_init() {
WiFi.mode(WIFI_STA);
WiFi.begin(WIFI_SSID, WIFI_PWD);
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
delay(5000);
ESP.restart();
}
delay(10);
// Loop forever (watchdog kill) on failure
if (!MDNS.begin(WIFI_HOSTNAME)) for(;;) delay(5000);
MDNS.addService("http", "tcp", 80);
}
#endif // WIFISUPPORT
#endif // ARDUINO_ARCH_ESP32

+ 27
- 0
Marlin/src/HAL/HAL_ESP32/wifi.h View File

@ -0,0 +1,27 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <ESPAsyncWebServer.h>
extern AsyncWebServer server;
#define DEFAULT_WIFI_HOSTNAME "marlin"
void wifi_init();

+ 1
- 1
Marlin/src/HAL/HAL_LINUX/hardware/LinearAxis.cpp View File

@ -58,7 +58,7 @@ void LinearAxis::interrupt(GpioEvent ev) {
position += -1 + 2 * Gpio::pin_map[dir_pin].value;
Gpio::pin_map[min_pin].value = (position < min_position);
//Gpio::pin_map[max_pin].value = (position > max_position);
//if(position < min_position) printf("axis(%d) endstop : pos: %d, mm: %f, min: %d\n", step_pin, position, position / 80.0, Gpio::pin_map[min_pin].value);
//if (position < min_position) printf("axis(%d) endstop : pos: %d, mm: %f, min: %d\n", step_pin, position, position / 80.0, Gpio::pin_map[min_pin].value);
}
}
}


+ 3
- 3
Marlin/src/core/serial.h View File

@ -49,13 +49,13 @@ extern uint8_t marlin_debug_flags;
#define _PORT_REDIRECT(n,p) REMEMBER(n,serial_port_index,p)
#define _PORT_RESTORE(n) RESTORE(n)
#define SERIAL_OUT(WHAT, ...) do{ \
if (!serial_port_index || serial_port_index == SERIAL_BOTH) MYSERIAL0.WHAT(__VA_ARGS__); \
if ( serial_port_index) MYSERIAL1.WHAT(__VA_ARGS__); \
if (!serial_port_index || serial_port_index == SERIAL_BOTH) (void)MYSERIAL0.WHAT(__VA_ARGS__); \
if ( serial_port_index) (void)MYSERIAL1.WHAT(__VA_ARGS__); \
}while(0)
#else
#define _PORT_REDIRECT(n,p) NOOP
#define _PORT_RESTORE(n) NOOP
#define SERIAL_OUT(WHAT, ...) MYSERIAL0.WHAT(__VA_ARGS__)
#define SERIAL_OUT(WHAT, ...) (void)MYSERIAL0.WHAT(__VA_ARGS__)
#endif
#define PORT_REDIRECT(p) _PORT_REDIRECT(1,p)


+ 1
- 1
Marlin/src/inc/SanityCheck.h View File

@ -393,7 +393,7 @@
#elif RX_BUFFER_SIZE && (RX_BUFFER_SIZE < 2 || !IS_POWER_OF_2(RX_BUFFER_SIZE))
#error "RX_BUFFER_SIZE must be a power of 2 greater than 1."
#elif TX_BUFFER_SIZE && (TX_BUFFER_SIZE < 2 || TX_BUFFER_SIZE > 256 || !IS_POWER_OF_2(TX_BUFFER_SIZE))
#error "TX_BUFFER_SIZE must be 0, a power of 2 greater than 1, and no greater than 256."
#error "TX_BUFFER_SIZE must be 0 or a power of 2 between 1 and 256."
#endif
#elif ENABLED(SERIAL_XON_XOFF) || ENABLED(SERIAL_STATS_MAX_RX_QUEUED) || ENABLED(SERIAL_STATS_DROPPED_RX)
#error "SERIAL_XON_XOFF and SERIAL_STATS_* features not supported on USB-native AVR devices."


+ 19
- 0
buildroot/share/tests/esp32-tests View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
#
# Build tests for esp32
#
# exit on first failure
set -e
restore_configs
opt_set MOTHERBOARD BOARD_ESP32
opt_enable WIFISUPPORT
opt_set "WIFI_SSID \"ssid\""
opt_set "WIFI_PWD \"password\""
opt_set TX_BUFFER_SIZE 64
opt_add WEBSUPPORT
exec_test $1 $2 "ESP32 with WIFISUPPORT and WEBSUPPORT"
# cleanup
restore_configs

+ 2
- 0
config/default/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/3DFabXYZ/Migbot/Configuration_adv.h View File

@ -2230,6 +2230,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/AlephObjects/TAZ4/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/AliExpress/UM2pExt/Configuration_adv.h View File

@ -2230,6 +2230,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Anet/A2/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Anet/A2plus/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Anet/A6/Configuration_adv.h View File

@ -2227,6 +2227,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Anet/A8/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/AnyCubic/i3/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/ArmEd/Configuration_adv.h View File

@ -2232,6 +2232,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/BIBO/TouchX/cyclops/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/BIBO/TouchX/default/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/BQ/Hephestos/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/BQ/Hephestos_2/Configuration_adv.h View File

@ -2236,6 +2236,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/BQ/WITBOX/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Cartesio/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Creality/CR-10/Configuration_adv.h View File

@ -2231,6 +2231,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Creality/CR-10S/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Creality/CR-10_5S/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Creality/CR-10mini/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Creality/CR-8/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Creality/Ender-2/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Creality/Ender-3/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Creality/Ender-4/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Einstart-S/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Felix/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/FlashForge/CreatorPro/Configuration_adv.h View File

@ -2227,6 +2227,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/FolgerTech/i3-2020/Configuration_adv.h View File

@ -2236,6 +2236,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Formbot/Raptor/Configuration_adv.h View File

@ -2232,6 +2232,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Formbot/T_Rex_2+/Configuration_adv.h View File

@ -2242,6 +2242,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Formbot/T_Rex_3/Configuration_adv.h View File

@ -2238,6 +2238,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Geeetech/A10M/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Geeetech/A20M/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Geeetech/MeCreator2/Configuration_adv.h View File

@ -2213,6 +2213,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Infitary/i3-M508/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/JGAurora/A5/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/MakerParts/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Malyan/M150/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Malyan/M200/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Micromake/C1/enhanced/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Mks/Robin/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Mks/Sbase/Configuration_adv.h View File

@ -2229,6 +2229,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/RapideLite/RL200/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/RigidBot/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/SCARA/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Sanguinololu/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/TheBorg/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/TinyBoy2/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Tronxy/X3A/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Tronxy/X5S-2E/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/UltiMachine/Archim1/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/UltiMachine/Archim2/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/VORONDesign/Configuration_adv.h View File

@ -2228,6 +2228,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Velleman/K8200/Configuration_adv.h View File

@ -2241,6 +2241,8 @@
#if ENABLED(WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver with auto-discovery
//#define OTASUPPORT // Support over-the-air firmware updates
#endif
/**


+ 2
- 0
config/examples/Velleman/K8400/Configuration_adv.h View File