Quantcast
Channel: flespi forum
Viewing all articles
Browse latest Browse all 881

[Changelog] flespi telematics hub

$
0
0

For those who are using method POST /gw/devices/{device-id}/calculate we have important change that requires from your an action.

There are 2 variants how to trigger this API call and provide to flespi configuration for calculation:

  1. Providing all configuration for counters, selectors, validators directly in the REST API call.
  2. Providing calc_id (ID of calculator) from which this selectors, counters, validators will be used during the actual calculation.

We are deprecating a second variant of data provisioning in this API call - when calculation configuration is provided via referenced calc_id. On January 14, 2025 an attempt to use this method with calc_id in the parameters will return an error. From today when you are calling this REST API method with second variant configuration it adds deprecated warning into REST API call response.

Please modify your integration and provide into this API method all selectors, counters and validation configuration directly. You can add a GET /gw/calculators/{calc_id} call to retrieve calculator configuration beforehand and supplying its parameters to the calculation call. Or just hard code the configuration to calculate in the code directly.


Viewing all articles
Browse latest Browse all 881

Trending Articles