Need to write out instructions http://docs.automotivelinux.org/docs/devguides/en/dev/reference/host-configuration/docs/3_Binding_Build_Example.html#run-it

Description

As this is a 'first step' tutorial, we cannot refer to 'some other' page here and need to write-out the command lines as-is.

http://docs.automotivelinux.org/docs/devguides/en/dev/reference/host-configuration/docs/3_Binding_Build_Example.html#run-it

It is not enough to refer some other document here. Just write it out.

 

Environment

None

Activity

Show:

Jan-Simon Moeller 
January 3, 2019 at 12:32 AM

Yes, that is the reason for this bug, we need verified instructions also on flounder (and guppy).

Scott Rifenbark 
January 2, 2019 at 11:39 PM

Hi,

I will need more information on how to run the "Helloworld" binding.  The information that the current doc page points the user to is in the "Running:" section of http://docs.automotivelinux.org/flounder/docs/apis_services/en/dev/reference/af-binder/afb-binding-writing.html#sample-binding-tuto-1.  It is as follows:

 

=========================================
 afb-daemon --binding tuto-1.so --port 3333 --token ''
At this point, afb-daemon has started, it loaded the binding tuto-1.so and now listen at localhost on the port 3333.

Testing using curl:
 $ curl http://localhost:3333/api/tuto-1/hello{"jtype":"afb-reply","request":{"status":"success","info":"hello world","uuid":"1e587b54-900b-49ab-9940-46141bc2e1d6"}}
Testing using afb-client-demo (with option -H for getting a human readable output):
 {{$ afb-client-demo -H ws://localhost:3333/api?token=x tuto-1 hello
ON-REPLY 1:tuto-1/hello: OK{"jtype":"afb-reply", "request":{"status":"success", "info":"hello world", "uuid":"03a84ad1-458a-4ace-af74-b1da917391b9"}}}}
This shows basic things:

  • The include to get for creating a binding

  • How to declare the API offered by the binding

  • How to handle requests made to the binding

============================================

What are the commands needed to run the "helloworld" binding?   Has anyone built and run this sample binding yet using Flounder? 

Scott

 

Jan-Simon Moeller 
December 10, 2018 at 11:27 AM

Fixed

Details

Assignee

Reporter

Labels

Contract ID

Components

Affects versions

Priority

Created December 9, 2018 at 8:15 PM
Updated April 8, 2021 at 4:28 PM
Resolved April 8, 2021 at 4:28 PM

Flag notifications