darkspr1te / MKSTFT_Marlin_Touch

A port of the BigTreetech Touchscreen Firmware for Marlin 3d printer boards- Added support for Makerbase MKS TFT28/MKSTFT32, should not be hard to port to other lcd's
35 stars 21 forks source link

How to send gcode through wifi port? #17

Closed tomasbaldi closed 3 years ago

tomasbaldi commented 3 years ago

Hi! I'm using the TX and RX pins to connect to my ESP32, and I wanted to know how to send a gcode.

Thank you!!

tomasbaldi commented 3 years ago

Is there a protocol to communicate or just sending through the UART "M115" should it work?

tiwanacote commented 3 years ago

It is the same protocol that you use to write to the motherboard, just send an "G01 X10\n". If you use the original firmware you have to encode to an specific protocol in which documentation there are several errors