Update Multiple Datastreams Simultaneously
Update multiple Datastreams of a single device with one GET request. It can help with saving the data volume for cellular devices.
Use such update for Map Widget in Blynk.Console so that all datapoints have same timestamp for data and coordinates.
Batch update
GET
https://{server_address}/external/api/batch/update?token={token}&{pin1}={value1}&{pin2}={value2}
This operation updates multiple Datastreams of a single device with one GET request.
Example:
https://blynk.cloud/external/api/batch/update?token=bFFtSHNCZZDWQ__Zs96cP5jLMhLoJofg&v1=33&v2=44
Path Parameters
Name | Type | Description |
---|---|---|
token | string | Device AuthToken |
pin | string | Virtual Pin |
value | string | The desired value of the Datastream. Will be parsed based on the Datastream data type (int, double, string) and bounded with min / max values of datastream settings. In case value doesn't match the Datastream type error will be returned. |
You can get the Device auth token in Device info.
You can also use Blynk.Edgent API to send data with the same timestamp.
Last updated