About Sensorpad
Getting started
Sending events
Reliability tips
Various delays can occur on Internet and packets may not arrive instantly. Our service may also respond with some delay. A little preparation will help ensure that events are delivered reliably.
Set Request Timeout
# set request timeout to 10 seconds
curl -m 10 https://sensorpad.link/40bb8708-16b5-47ca-a864.../
Add retries
# make 3 retries
curl --retry 3 https://sensorpad.link/40bb8708-16b5-47ca-a864.../
Make asynchronous requests and handle exceptions
When sending events from your code, you'll want to send them asynchronously and non-blocking so that the basic logic of your application runs regardless of whether the event reaches our server.
It would not be superfluous to add a network error handler to your code and implement a retry in case of network errors.