[FAQ] Connecting a web service 12.29.2014 02:35 PM
Q: How do I setup a data source that is a web service to send messages to M2X? I assume it's just a POST, but is it directed at a stream, feed, batch or what? How does this differ from connecting a device?
A: Yes, it will be a POST, the same as you would do with a device.
If you have a single measurement point you want to store, you would direct the POST at the stream level of a single data source.
If you have multiple measurement points, you can send a single POST (with multiple measurements) to the feed level of the data source.
A batch aggregates multiple data sources / devices in a group. Currently, you are only allowed to POST to one data source/feed at a time, so you can't target a POST at the Batch level. (i.e. you can't make one call to update multiple data sources at the same time.)
Re: [FAQ] Connecting a web service 12.29.2014 02:36 PM
Q: This was very helpful, especially if the device or service has been offline but still collecting data. I'm just exploring M2X and how it might be used for other purposes other than device messaging. When creating a stream in the admin program, under the symbol section, I see that there is an option for a link "li" but I didn't see anyway to just declare a pure "string". Did I miss something obvious? The upcoming triggers feature looks promising if it can handle this type of string data. Example: someone sends a link or a keyword to the stream and this kicks off a notification. Again, just trying to figure out what M2X will or will not do concerning web services. Any thoughts or suggestions are welcome.