probonopd / WirelessPrinting

Print wirelessly from Cura, PrusaSlicer or Slic3r to your 3D printer connected to an ESP8266 or ESP32 module
352 stars 65 forks source link

React to commands coming from the printer (M118) #130

Open probonopd opened 4 years ago

probonopd commented 4 years ago

We could react to certain commands coming from the printer. This could be used e.g., to trigger the printing of certain files stored on the WirelessPrinting SD card such as calibration patters, the last printed GCODE, etc.

Of course the printer firmware would need to be modified to send such commands, or have them stored in the printer SD card.

http://marlinfw.org/docs/gcode/M118.html

E.g.,

M118 A1 action:repeatlastgcode

to send the last GCODE file again.

probonopd commented 4 years ago

Similarly, this could be used to configure WLAN:

M118 A1 action:setwlan:ssid:password

or something along those lines.