Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added responseValueExpression RPC param for Request Connector #1031

Merged
merged 2 commits into from Dec 21, 2022
Merged

Added responseValueExpression RPC param for Request Connector #1031

merged 2 commits into from Dec 21, 2022

Conversation

samson0v
Copy link
Contributor

@samson0v samson0v commented Dec 21, 2022

Provided a more flexible way to parse the HTTP server response in the RPC section.
Renamed params:
valueExpression -> requestValueExpression

New params:
responseValueExpression

Example of new configuration:

"serverSideRpc": [
    {
      "deviceNameFilter": ".*",
      "methodFilter": "getValue",
      "requestUrlExpression": "api/states",
      "responseTimeout": 1,
      "httpMethod": "GET",
      "requestValueExpression": "${params}",
      "responseValueExpression": "${temp}",
      "timeout": 0.5,
      "tries": 3,
      "httpHeaders": {
        "Content-Type": "application/json"
      }
    },

@samson0v samson0v linked an issue Dec 21, 2022 that may be closed by this pull request
@imbeacon imbeacon merged commit 69787bf into thingsboard:master Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[HELP] Request Connector RPC getValue JSON parse problem
2 participants