is there an elegant way to send and receive udp packets with a plugin to react ti it or trigger events in octoprint?
I am working on a plugin to use Octoprint confotable with Sla-printers like Elegoo Mars or Anycubic Photon.
The communication via udp is used to upload and start the print job directly from ChiTuBox.
I have already written the code for this part and it works fine. Now I just think about how to integrate it into an Octoprint plugin.
My current approach, which I haven't implemented yet, will be to start a new thread and handle the communication via udp in it.
But I'm still relatively new to Python and have a lot of questions about the Octoprint plugin system.
For example how I can trigger the start of a print job from the plugin based on my udp communication.
next i will have a look at how the discovery-plugin is built.
If anyone has some helpful approaches to the topic, please let me know.
Thanks for reading.