Class GCodes
Static class that processes G-codes in the control server
Inherited Members
Namespace: DuetControlServer.Codes.Handlers
Assembly: DuetControlServer.dll
Syntax
public static class GCodes
Methods
CodeExecuted(Code)
React to an executed G-code before its result is returned
Declaration
public static Task CodeExecuted(Code code)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code processed by RepRapFirmware |
Returns
Type | Description |
---|---|
Task | Result to output |
Process(Code)
Process a G-code that should be interpreted by the control server
Declaration
public static Task<Message?> Process(Code code)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code to process |
Returns
Type | Description |
---|---|
Task<Message> | Result of the code if the code completed, else null |