Luc afccedd91f Remove the ESP901 as duplicate with ESP150
Fix crash at start due to cuncurrence of serial access and task creation
Use idle task to start faster the wifi
Avoid echo of command to serial - allow only answers but esp ones
2022-03-27 22:13:45 +08:00
2020-01-14 10:26:42 +01:00
2022-03-16 18:59:20 +08:00
2020-01-06 14:40:46 +01:00
2022-03-02 14:45:41 +08:00
2019-12-29 19:04:08 +01:00
2020-12-27 10:54:19 +01:00
2019-12-29 19:04:08 +01:00
2020-01-06 15:08:00 +01:00
2020-06-28 19:24:31 +02:00
2020-10-18 08:40:48 +02:00
2022-02-08 14:02:57 +08:00
2019-12-16 14:18:05 +01:00
2021-06-04 11:29:58 +02:00

ESP3DLib 1.0 Marlin version

Library for ESP32 boards using Marlin 2.x :

FYSETC-E4, MRR_ESPA, MRR_ESPE, ESP32 Controller

The web interface files has it's own repository ESP3D-WEBUI.

Latest development version Development Version GitHub last commit (branch) Travis (.org) branch Release Version Marlin

To use development version just add #devt at the end of ESP3DLib git address in your platformio.ini

ESP3DLib=https://github.com/luc-github/ESP3DLib.git#devt

⚠️ This is not for ESP8266 boards neither standalone ESP3D installation

for them go here

All releases

Donate

Every support is welcome: PayPal – The safer, easier way to pay online.
Especially if need to buy new modules for testing.

Features

  • Complete configuration by web browser (Station or Access point) or by Serial commands
  • Authentication for sensitive pages
  • Update firmware by web browser or OTA
  • Captive portal in Access point mode which redirect all unknow call to main page
  • mDNS which allows to key the name defined in web browser and connect only with bonjour installed on computer
  • SSDP, this feature is a discovery protocol, supported on Windows out of the box
  • Fail safe mode (Access point)is enabled if cannot connect to defined station at boot.
  • The web ui add even more feature : https://github.com/luc-github/ESP3D-WEBUI/blob/master/README.md#features

Coming Features

As side project of ESP3D, it follows ESP3D features: https://github.com/luc-github/ESP3D/blob/3.0/ESP3D-features.xls?raw=true

How to enable ?

In Marlin configuration files :
Configuration.h

Select an ESP32 based board.

Uncomment the second serial port to allow esp3d to get all printer feedback

/**
 * Select a secondary serial port on the board to use for communication with the host.
 * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
 */
#define SERIAL_PORT_2 -1

Configuration_adv.h

enable #define ESP3D_WIFISUPPORT // ESP3D Library WiFi management (https://github.com/luc-github/ESP3DLib)

Define to which access point your board need to connect to:

  #define WIFI_SSID "Wifi SSID"
  #define WIFI_PWD  "Wifi Password"

if not defined or you left like this the board will act as an Access Point instead.

and finally

#define WEBSUPPORT          // Start a webserver (which may include auto-discovery)
#define OTASUPPORT          // Support over-the-air firmware updates
#define WIFI_CUSTOM_COMMAND // Accept feature config commands (e.g., WiFi ESP3D) from the host

For advanced configuration add in same section:

to enable this feature which is disabled by default:

//AUTHENTICATION_FEATURE: protect pages by login password.
#define AUTHENTICATION_FEATURE

to disable any of these features which are enabled by default:

//MDNS_FEATURE: this feature allow  type the name defined
//in web browser by default: http:\\marlinesp.local and connect
#define DISABLE_MDNS_FEATURE

//SSDD_FEATURE: this feature is a discovery protocol, supported on Windows out of the box
//Rely on Configuration_adv.h
#define DISABLE_SSDP_FEATURE

//CAPTIVE_PORTAL_FEATURE: In SoftAP redirect all unknow call to main page
#define DISABLE_CAPTIVE_PORTAL_FEATURE

Default Configuration

Default Settings if not modified in Configuration_adv.h:
AP:MARLIN_ESP
PW:12345678
Authentification: WPA
Mode: g (n is not supported by AP, just by STA)
channel: 1
IP: 192.168.0.1
Mask: 255.255.255.0
GW:192.168.0.1
Web port:80 the websocket is web port + 1 => 80+1 : 81
User: admin
Password: admin
User:user
Password: user

Direct commands:

Check wiki

Contribution/customization

  • To style the code before pushing PR please use astyle --style=otbs *.h *.cpp *.ino
  • The embedded page is created using nodejs then gulp to generate a compressed html page (tool.html.gz), all necessary modules can be installed using the install.bat file content, then it is included using bin2c (https://sourceforge.net/projects/bin2c/) to generate the h file used to create the file nofile.h, update the array and size according new out.h.
  • The current UI is located here

:question:Any question ?

Check Wiki or Join the chat at Discord server
you can also check discussions panel

:exclamation:Any issue ?

submit ticket

TODO/On going :

--Import all ESP3D 2.1/3.0 features

Description
Languages
C++ 60.2%
C 27.2%
JavaScript 6.8%
HTML 2.9%
CSS 2%
Other 0.8%