I’m using a photon to read Dust sensor values and send them to my external API for storage. I can do this 2 ways:
- Using TCPClient and sending an http POST to the API endpoint directly from photon.
- Photon publishes an event and a webhook set up on the particle device cloud handles the http POST.
I’m wondering what the pros and cons of each are? Are webhooks handled by the particle device cloud generally preferable?