Changes Un/SubscribeVehicleData requests behavior. #152
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
'appID' parameter had been removed from Un/Subscribe requests for HMI API.
Logic of requests had been changed: un/subscribe request is sent only if
there are no apps subscribed for required parameters.
Implements: APPLINK-13345
Requirements to SDL:
1.1. must NOT send SubscribeVehicleData(param_1, param_2) to HMI.
1.2. respond via SubscribeVehicleData (SUCCESS) to app_2
2.1. transfer SubscribeVehicleData(param_1) to HMI.
2.2. respond corresponding results received from HMI to app_2:
2.2.1. in case SDL receives SUCCESS for param_1 SDL must store this param in list AND respond SubscribeVehicleData (SUCCESS) to app_2
2.2.2. in case SDL receives erroneous result for param_1 SDL must NOT store this param in list AND respond SubscribeVehicleData (Result Code, success:false) to app_2
4.1. respond via UnsubscribeVehicleData(SUCCESS) to app_1
4.2. stop sending OnVehicleData (param_1) ONLY to app_1
(meaning: does not send UnsubscribeVehicleData(param_1) to HMI while there are others app still subscribed on param_1)
HMI_API changes:
param must be removed from UnsubscribeVehicleData
This function is used to unsubscribe the notifications from the subscribeVehicleData function. ID of application that requested this RPC. See GPSData The vehicle speed in kilometers per hour