[feature] Include sessionId in rr_connect response
-
Align
/rr_connect
response from DSF with RRF and make thesessionKey
available to be able to use session based authentication with the emulated http endpoints.return Content(JsonSerializer.Serialize(new { apiLevel = 1, err = 0, isEmulated = true, sessionTimeout = 8000, boardType = boardString }, JsonHelper.DefaultJsonOptions), "application/json");
https://github.com/Duet3D/RepRapFirmware/wiki/HTTP-requests#get-rr_connect
{ "err": 0, "sessionTimeout": 8000, "boardType": "duetwifi102", "sessionKey": 123456 }
-
-
@timschneider I have moved this to the firmware wishlist as @chrishamm tells me that if we do this it would be in RRF and then in the DSF compatibility layer.
-
@timschneider I've logged this here: https://github.com/Duet3D/RepRapFirmware/issues/1074 But since you need to poll rr_reply for certain codes anyway, that solution probably isn't really applicable as a fix for your other problem.