I am new to the Particle ecosystem, and I am trying to figure out what the point of these four things is.
Webhooks and Particle.publish
As far as I understand it, Particle.publish is used in conjunction with webhooks which can post the information contained in Particle.publish to a website such as ThingSpeak, and also puts that information in the log of the Particle dashboard. But, it seems as though Particle.publish can only take one piece of data, and webhooks can only deal with one event, so for each piece of information you need another webhook. I know that it is possible to post information to other websites without webhooks, but then why would one need webhooks or Particle.publish?
Particle.variable and Particle.function
I believe that these two allow you to access variables and functions from outside the program, but from where?
Any explanations for these would be greatly appreciated!