7
Enable
Motor
Inquire
the
status of 3D
printer
M21
printer_priile:xxxx.gcode;precent:60%;used_time:20mm;
printer_pae:xxxx.gcode;precent:60%;used_time:20mm;
printer_idle;
Notifications
upon
finishing
printing
printer_fi:xxx.gcode;used_time:60mm;
Notifications
when
filament runs
out
printer_ lament;
Event: finish printing, pause, filament running out/ fracturing, 3D printer is
on-line, 3D printer is off-line; printing, etc.
2.2
Define the Interactive Interface between ESP8266 WiFi
module and the Server
Log in
Instruction
format
yy_xxx:nnnn;login
Description User name: password
Users connect the 3D printer with the server
Instruction
format
xxx;call;yyy
Description User xxx visits 3D printer yyy: Inform the WiFi module of 3D printer that the data
returned will be transferred to user xxx.
Inquire on-line devices
Instruction
format
xxx;get live
Description Xxx represents that the user is inquiring which 3D printers are online.
Data transmission
Instruction
format
xxx;senddata;yyy;nnnnnnnn