Hi,
I am newbie to writing firmware for particle,
How do I post data to a REST API through firmware?
e.g. I want to periodically send data to a REST API hosted on www.example.com
how to do this in firmware?
-charlie
Hi,
I am newbie to writing firmware for particle,
How do I post data to a REST API through firmware?
e.g. I want to periodically send data to a REST API hosted on www.example.com
how to do this in firmware?
-charlie
Take a look into webhooks: https://docs.particle.io/tutorials/device-cloud/webhooks/
Those will handle the hard parts in the cloud, taking away the strain from your devices.
If you really want to do it locally, there are some libraries available for that as well.
What’s the use case?
Hi Moors7,
It will be very good if you point me some libraries to do it locally.
-charlie
Have a look at the HTTPClient library: https://build.particle.io/libs/HttpClient/0.0.5/tab/HttpClient.cpp