Webhook vs mqtt method. particle electron

I am using Ubidots but I have two methods for publishing my temperature sensor data.
What method do yo recommend me to use? and why?

-Webhook for me is easy , cause I am using Particle.Publish
-MQTT is rare beacause I have to use specific ubidots programation functions.

But I dont know what is the stable, reliable method…

Thanks!

There is also the “native” TCP/UDP way which is featured in this library (recommended option by Ubidots)
https://build.particle.io/libs/Ubidots/2.1.12/tab/Ubidots.cpp

But AFAIK only webhooks keep the whole communication secure (use HTTPS)

1 Like