Hi,
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.
Julio, do I understand it correctly that you're trying to implement an HTTP-server in a smart-serial driver? That seems quite ambitious, and basically means you'll have to dig deep in the RFC of HTTP to see how connection management is done.
Thank you very much for the feedback.
Thank you @Gelber Mahecha fixing the HTTP structure worked great!!