1.0.0 • Published 6 years ago

node-red-contrib-nupmes-get-io v1.0.0

Weekly downloads
3
License
Apache-2.0
Repository
-
Last release
6 years ago

NuPMESGetIO

The NuPMESGetIO node returns the state value of an io address in NuPMES. To form a complete GET request, the node attributes "server", "deviceName" and "ioName" need to be specified.

When triggered by an arbitrary message, a request of the form

var options = {
        url: this.server.url + "/services/DeviceInput/IoStateRequest?" + JSON.stringify(jsonBody),
        method: "GET",
        headers: {
          "Content-Type": "application/json"
        }
      };

is sent to the server. If the response contains a key named "state", its value is then propagated to the next node.

Author: N+P Informationssysteme GmbH License: Apache 2.0