-
-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]How to Send G-code Commands via HTTP API in ESP3D Version 2.x #1059
Comments
Thank your for submiting, please be sure you followed template or your issue may be dismissed. if you deleted the template it is here |
Sorry seems there was a typo in https://esp3d.io/ESP3D/Version_2.1.X/documentation/api/ |
Work, thx! If i send g-code - M114 (get current coordinate) - it return only |
http command does only [ESPXXX]Responses not others commands Printer response go to Web socket if you want same chanel for query/answer you better use the raw tcp whci has default port 8888 |
Hmm. How i can use tcp 8888 port? I create connect from node-red (tcp request node) and it has error and i can see answer. I inject to the node M114. |
that is depending of you language and API - it is just tcp socket |
Hm. I can`t connect to the flow. I can see disconnect. |
be sure also 8888 is right port - check your settings in webui |
Where i can see it in web UI? In sources i can see port 8888. |
in settings and in status |
|
well this is because you are not using ESP3D, you are using ESP3DLib for Marlin so that a big difference ESP3DLib V1.0 does not have Data port (Telnet) support |
Oh. Thx! Can i upgrade the board? I use https://github.com/makerbase-mks/MKS-TinyBee |
yes sure |
Hello,
I’m using ESP3D version 2.x and want to send G-code commands like
G28 Z
andM114
through the HTTP API. I've tried requests in the formathttp://<IP>/command?cmd=M114
, but I keep getting anInvalid command
error. Could you clarify the correct way to format these requests for version 2.x? Also, if a password is needed, how do I set and include it in the requests?Thank you for your help!
The text was updated successfully, but these errors were encountered: