Retrieves the latest ph measurement from your garden
This accessor does not block waiting for the response, but if any additional symbol input is received before a pending request has received a response or timed out, then the new request will be queued and sent out only after the pending request has completed. This strategy ensures that outputs are produced in the same order as the input requests.
This accessor requires the optional 'httpClient' module, which may or may not be provided by an accessor host. Most hosts will provide this module.
- Version:
- $$Id$$
- Source:
Inputs:
Name | Type | Description |
---|---|---|
trigger |
An input to trigger data acqusition. |
Outputs:
Name | Type | Description |
---|---|---|
ph |
number | The latest measured pH value. |
Methods
(static) filterResponse()
Filter the response, extracting the ph information. The full response is produced on the 'response' output.
(static) initialize()
Initialize the accessor by attaching an input handler to the symbol input.
(static) setup()
Set up the accessor by defining the inputs and outputs.