|
Hi, 2nd question, is there a way for a plugin to detect when a sender is actively running a gcode file? Jeff |
Replies: 1 comment
This will happen if the primary stream is via USB as this blocks if no client is connected and the buffers are full. I have it on my todo list to add an event for client connect/disconnect and use that to set the
By checking that the status is |
This will happen if the primary stream is via USB as this blocks if no client is connected and the buffers are full. I have it on my todo list to add an event for client connect/disconnect and use that to set the
hal.stream.state.connectedflag. But I have not yet managed to implement this...A possible workaround is to hook into the
hal.stream_blocking_callback, this will called when the USB stream blocks - you can then exit the blocking loop and stop replicating data to the USB stream.By chec…