I have the following situation.
A driver acting as server via smart-serial.
If a request is made via postman or curl.
A response with 200 and the json body will be visible on the stream viewer.
On postman a status 200 will be available but it will keep waiting until timeout or until the driver is stopped.
Similar with curl.
Tried to close the connection with a close action but i may be missing something.
Could you please give me some advice in how to implement this feature?
Thanks in advance.
If your element needs to act as the server to handle http requests, then I don't think there is any other way than implementing a custom web service in a QAction. I assume you will only have one of these elements running on your DMS?
Implementing a custom web service in a QAction will have some limitations as communication will "bypass" DataMiner so you won't see this in the stream viewer for example. You'll also need to make sure you are closing the service whenever your element is stopped or deleted.