File tree Expand file tree Collapse file tree 3 files changed +44
-5
lines changed Expand file tree Collapse file tree 3 files changed +44
-5
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ impl Client {
117
117
self . responses . insert ( SequenceId :: status ( ) , message) ;
118
118
return Ok ( ( ) ) ;
119
119
}
120
+
121
+ println ! ( "{:#?}" , message) ;
120
122
self . responses . insert ( sequence_id, message) ;
121
123
return Ok ( ( ) ) ;
122
124
}
Original file line number Diff line number Diff line change @@ -130,7 +130,15 @@ pub struct GcodeLine {
130
130
/// The sequence id.
131
131
pub sequence_id : SequenceId ,
132
132
/// The gcode line.
133
- pub line : String ,
133
+ pub param : Option < String > ,
134
+ /// The reason for the message.
135
+ pub reason : Reason ,
136
+ /// The result of the command.
137
+ pub result : Result ,
138
+ /// The source.
139
+ pub source : Option < i64 > ,
140
+ /// The return code.
141
+ pub return_code : Option < String > ,
134
142
#[ serde( flatten) ]
135
143
other : BTreeMap < String , Value > ,
136
144
}
@@ -151,7 +159,7 @@ pub struct ProjectFile {
151
159
/// The subtask name.
152
160
pub subtask_name : String ,
153
161
/// The gcode file.
154
- pub gcode_file : String ,
162
+ pub gcode_file : Option < String > ,
155
163
#[ serde( flatten) ]
156
164
other : BTreeMap < String , Value > ,
157
165
}
Original file line number Diff line number Diff line change 842
842
],
843
843
"type" : " string"
844
844
},
845
- "line " : {
845
+ "param " : {
846
846
"description" : " The gcode line." ,
847
+ "nullable" : true ,
848
+ "type" : " string"
849
+ },
850
+ "reason" : {
851
+ "allOf" : [
852
+ {
853
+ "$ref" : " #/components/schemas/Reason"
854
+ }
855
+ ],
856
+ "description" : " The reason for the message."
857
+ },
858
+ "result" : {
859
+ "allOf" : [
860
+ {
861
+ "$ref" : " #/components/schemas/Result"
862
+ }
863
+ ],
864
+ "description" : " The result of the command."
865
+ },
866
+ "return_code" : {
867
+ "description" : " The return code." ,
868
+ "nullable" : true ,
847
869
"type" : " string"
848
870
},
849
871
"sequence_id" : {
853
875
}
854
876
],
855
877
"description" : " The sequence id."
878
+ },
879
+ "source" : {
880
+ "description" : " The source." ,
881
+ "format" : " int64" ,
882
+ "nullable" : true ,
883
+ "type" : " integer"
856
884
}
857
885
},
858
886
"required" : [
859
887
" command" ,
860
- " line" ,
888
+ " reason" ,
889
+ " result" ,
861
890
" sequence_id"
862
891
],
863
892
"type" : " object"
874
903
},
875
904
"gcode_file" : {
876
905
"description" : " The gcode file." ,
906
+ "nullable" : true ,
877
907
"type" : " string"
878
908
},
879
909
"profile_id" : {
907
937
},
908
938
"required" : [
909
939
" command" ,
910
- " gcode_file" ,
911
940
" profile_id" ,
912
941
" project_id" ,
913
942
" sequence_id" ,
You can’t perform that action at this time.
0 commit comments