Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Buttons] - Button Subscription response from HMI #109

Open
KhrystynaDubovyk opened this issue Nov 6, 2018 · 0 comments
Open

[Buttons] - Button Subscription response from HMI #109

KhrystynaDubovyk opened this issue Nov 6, 2018 · 0 comments

Comments

@KhrystynaDubovyk
Copy link
Contributor

KhrystynaDubovyk commented Nov 6, 2018

SubscribeButton

UnsubscribeButton

Description:

As a mobile application, I want to

  • subscribe to buttons;
  • unsubscribe from buttons;
  • button subscriptions to be resumed after unexpected disconnect or due to new ignition cycle

Detailed description:

API changes

Remove <function name="OnButtonSubscription" messagetype="notification">.

Add new RPCs to HMI_API:

<function name="SubscribeButton" messagetype="request">
        <description>
            Subscribes to buttons.            
        </description>
		
	    <param name="appID" type="Integer" mandatory="true">
			<description>The ID of the application requesting this button usubscription. </description>
        </param>
		
        <param name="buttonName" type="ButtonName" mandatory="true">
            <description>Name of the button to subscribe.</description>
        </param>
</function>
<function name="SubscribeButton" messagetype="response"> </function>
<function name="UnsubscribeButton" messagetype="request">
        <description>
            Unsubscribes from buttons.            
        </description>
        
        <param name="appID" type="Integer" mandatory="true">
            <description>The ID of the application requesting this button unsubscription. </description>
        </param>
        
        <param name="buttonName" type="ButtonName" mandatory="true">
            <description>Name of the button to unsubscribe.</description>
        </param>
    </function>
<function name="UnsubscribeButton" messagetype="response"></function>

Diagram:

N/A

Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant