Using HTTP Retriever to retrieve data using HTTP GET
-
I have a logger that I can send a request for Modbus register value through a GET request in the form
http://10.10.0.1?HoldingReg=43
It is possible in Mango to setup a Publisher to issue this request periodically and a HTTP Receiver to log it to a datapoint.
Another way is to use Mango HTTP Retriever instead with one data point to retrieve the register periodically.However I have 190 of these points per device to collect, so this means I have to create hundreds of Publishers or Retrievers data sources.
Is there perhaps a way that I can set up one HTTP Retriever with 190 data points?
thanks
-
I can't think of how the Publisher and Receiver would work but this sounds pretty much exactly what the HTTP Retriever is meant for. Is there an option to make one request to the device and get all the register values back? If so then you could just use one data source for each device but as you say if it's a separate request for each register then you would need one data source for ever register.
-
The way I understand the Retriever is that it sends ONE predetermined URL (setup in the data source) and then fills up all the data points based on a single response.
I would do that by setting up Retriever URL as for example
http://10.10.0.1?HoldingReg=43&HoldingReg=44&HoldingReg=45
and then define a RegEx to look for the response containing the actual value for each one.However in this case the logger process a maximum of 5 data points at a time, so for every 5 I have to create a new Retriever?
Is there perhaps a way that the Retriever will execute a request for ea of its data points and also append something to the URL based on that data point?
-
Right, this works exactly as you describe so to work with that data logger you would need one data source per 5 data points.