Duet Webserver documentation
-
Hi,
maybee it can be that i'm blind! is there somewhere a Documentation for the build in Webserver with all rr_ commands ?
regards
Andy
-
-
this links i know! but there are not the complete documentation.
-
There is also the source code - with a nice documentation block at the top:
https://github.com/dc42/RepRapFirmware/blob/36488de6fc6635f470b311c91fe282efe7a3e559/src/Duet/Webserver.cpp#L28-L83(but AFAIK it is also not complete)
-
@siam what specifically are you missing?
-
ok in the c Code i have not looked i think it will help me a bit, what i havent found for now is how i get the information when z.b M300: Play beep sound or when M291 is executed with rr_reply i will nothing receive when i execute this two comands
-
In file RepRap.cpp you will find this in the code that generates the reply to rr_status:
if (sendBeep || sendMessage || mbox.active) { response->cat(",\"output\":{"); // Report beep values if (sendBeep) { response->catf("\"beepDuration\":%u,\"beepFrequency\":%u", beepDuration, beepFrequency); if (sendMessage || mbox.active) { response->cat(','); } beepFrequency = beepDuration = 0; }
So you need to look for fields output/beepFrequency and output/beepDuration in the JSON status response.
-
ok Thank you i will try it