@chrishamm @T3P3Tony
Looking at CodeLogger did help me figure a few things, thanks for that push.
After some testing, the EXECUTED mode is what I need. I was only testing the PRE and POST interception modes previously.
I am having issues with the sample program https://github.com/Duet3D/dsf-python/blob/v3.6-dev/examples/custom_m_codes.py
My desire is to capture ALL error messages. Currently I am receiving just those that are generated by G/M/T codes.
I want to do exactly what the first comment in the sample program is stating, capture the whole G-code stream (no filters).
It crashes on the non-G/M/T codes being intercepted (the
cde = intercept_connection.receive_code()
call) and the reported exceptions are a bit Greek to me.
If I change the interception mode from EXECUTED to POST, I get the non-G/M/T intercepts but lose the G/M/T intercepts completely, though the program does not crash. So I don't know if what I am facing is an issue the sample script or the binding call itself.
Who might be the python guru for dealing with the dsf-python bindings? Is it @Falcounet ? I see AndyEveritt is pushing a lot of the contributions for dsf-python on git. Does he have a handle on here?