Async execution
Last updated
Was this helpful?
You can invoke a function through its HTTPS endpoint without waiting for a response. To do this, add the ?_blocking=false parameter to the URL:
https://parse.ubidots.com/prv/username/my-function?_blocking=falseHTTP/1.1 202 Accepted
Content-Type: application/json
{"activationId":"653ca08ce2104290bca08ce21002909c"}👍 Particle Webhooks
Use async execution when sending data to a UbiFunction from external platforms such as Particle.io or LoRaWAN network servers. This helps prevent failed or timed-out requests, which can affect server ratings.
For example, Particle skips webhook attempts after too many timeouts or 4xx/5xx HTTP status codes. That can lead to data loss in your IoT application. Learn more about Particle's API limits and policy.
_blocking
Not specified, or "False":
Not specified: By default, the function returns a response only after execution finishes.
False: The function immediately returns a 202 Accepted response with a JSON body that includes the function activationId.
No
Last updated
Was this helpful?
Was this helpful?