Hi, I noticed little issue with JSON responses on M408 S2 and M408 S4 with new firmware (2.01+). I am parsing these responses and noticed that it stopped getting me 'heads' temperatures after firmware upgrade. It was working all the time for at least one year now, last working firmware is 2.01beta2(RTOS) (2018-07-14b5). I could not find any details on this in WHATS_NEW.md documentation, so no idea if its feature or bug - and if I should rewrite my parser or it will be fixed
I am going to show you those responses for better understanding - same config:
old: M408 S2
{"status":"I","coords":{"axesHomed":[0,0,0],"xyz":[0.000,0.000,317.000],"machine":[0.000,0.000,317.000],"extr":[0.0]},"currentTool":0,"params":{"atxPower":0,"fanPercent":[100,0,100,0,0,0,0,0,0],"speedFactor":100.0,"extrFactors":[100.0],"babystep":0.000},"sensors":{"probeValue":0,"fanRPM":0},"temps":{"bed":{"current":21.9,"active":0.0,"state":0,"heater":0},"chamber":{"current":20.8,"active":0.0,"state":0,"heater":2},"current":[21.9,30.6,20.8,2000.0,2000.0,2000.0,2000.0,2000.0],"state":[0,2,0,0,0,0,0,0],"heads":{"current":[30.6],"active":[30.0],"standby":[0.0],"state":[2]},"tools":{"active":[[30.0]],"standby":[[0.0]]},"extra":[{"name":"MCU","temp":37.2}]},"time":344.0}
new: M408 S2
{"status":"I","coords":{"axesHomed":[1,1,1],"xyz":[0.000,-120.000,280.736],"machine":[0.000,-120.000,280.736],"extr":[-3.0]},"speeds":{"requested":0.0,"top":0.0},"currentTool":0,"params":{"atxPower":0,"fanPercent":[100,0,100,0,0,0,0,0,0],"speedFactor":100.0,"extrFactors":[100.0],"babystep":0.000},"sensors":{"probeValue":0,"fanRPM":0},"temps":{"bed":{"current":49.4,"active":0.0,"state":2,"heater":0},"chamber":{"current":22.0,"active":0.0,"state":0,"heater":2},"current":[49.4,88.0,22.0,2000.0,2000.0,2000.0,2000.0,2000.0],"state":[2,2,0,0,0,0,0,0],"tools":{"active":[[0.0]],"standby":[[130.0]]},"extra":[{"name":"MCU","temp":37.3}]},"time":515.0}
- you can see its missing "heads":{"current":[30.6],"active":[30.0],"standby":[0.0],"state":[2]}
My current firmware (where its not working):
Firmware Version: 2.01(RTOS) (2018-07-26b2)
WiFi Server Version: 1.21
Web Interface Version: 1.22.3
- newest RC tested: not working either
Last working firmware (I just downgrade today for testing):
Pre-release Firmware Version: 2.01beta2(RTOS) (2018-07-14b5)
.. and previous
So the question is "new" JSON the new constant or still variable? Or just bug?
Thank you so much for support.
If you have any questions about this behaviour feel free to ask.
Thanks, David.
Btw thank you for fixing the M112