Jasbir,
So now you have the two instances (or internally in the one instance) communicating right? (you can pass the "static data"). In order to pass real data in the body and store it, try the following.
- if you have some real data points to send, make a new publisher like the one we did previously. Make sure you save the publisher. I don't think Mango will let you add real datapoints until you save the publisher. If you don't have any real data to pass yet then make a "Virtual Data Source" and add a point to make random numbers every 30 seconds or so.
- Now we're going to add data points to the publisher. Select one of your real data points that you have or the one you made as a "Virtual Data Source" in the pull down menu at the bottom of the page. Select one or more datapoints to send.
- In order to properly send the data, you will have to name the "parameter" (datapoint). This is the same parameter name you will use on the HTTP Receiver end to listen for the datapoint and add it to your database. Make sure that you have selected "All Updates" on the "update events" box. This means that any time a new datapoint changes in a way that the sending instance considers worthy of logging it will send the value to your receiver (timestamp, value or either depending on how your logging is setup).
- On the receiver end, you will need to setup the points you are listening for. In the HTTP Receiver that you have already confirmed is sending static data (from the previous exercise), you will need to add some receiver points. Again, you have to save the HTTP Receiver, or it won't let you add data points. Once you do this, you can add a new receiver point by clicking the green circle with the arrow at the bottom of the screen. The new point should be of the same data type as the publisher (binary, numeric, alphanumeric, etc). You will also need to put the exact same parameter name here as you put in the publisher for the data point (this is case sensitive so it has to be EXACT). Save the datapoint once you have entered all of the information.
- Now that you have a data point configured, make sure you turn the datapoint on, and the data source. You can click on the red balls for the datapoint and the data source to toggle them green. The receiver will only receive and store data if these are green. Also, make sure that your HTTP Publisher has the "Enabled" checkbox checked (or that there is a green ball on the status under the "Publishers" page)
- that's really it.... you should now be passing and storing data for the datapoint you added. If you want to quickly confirm this, you can click on the "Watchlist" and add the point you just added to the current watchlist (so you can see the most recent value, and some charting over time).
Hope this helps,
Craig