openrvdas
openrvdas copied to clipboard
http Reader
Similar to the polledSerialReader but issues periodic http get/post requests to a remote server to retrieved data. Will need options to define the URL, request type (default: get, optionally: post), a optionally and array of headers (i.e. for JWT bearer authentication), an optionally an array of acceptable success response code (default: 200), a timeout period and query period.
- An unexpected response code should trigger an error/error message and the response contents should NOT be processed.
- If a timeout is specified then the period must be >=timeout.