aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-08-29 18:41:18 +0800
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-08-29 10:49:27 +0000
commit7a5a796cdbd2658cf6f621aab209849818a67839 (patch)
tree5645ff319b1c82e7f1fed2e42cb8a409c0fee3b6
parent8f31d2d8998c1387981dbd5ba18de76bcf648fac (diff)
Introduce missed binding example
By the way,replace obsolete required-api:local with required-binding:local. And fix binding instructions. Bug-AGL: SPEC-2778 Change-Id: Ie4a882867d17b8833fdb8061704e69ae617f47c5 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
-rw-r--r--README.md2
-rw-r--r--conf.d/wgt/config.xml.in4
2 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index b9c5ff0..2e6bad9 100644
--- a/README.md
+++ b/README.md
@@ -96,7 +96,7 @@ ssh root@${YOUR_BOARD_IP} afm-util start ${APP_NAME}@${APP_VERSION}
```bash
export YOUR_BOARD_IP=192.168.1.X
export PORT=8000
-ssh root@${YOUR_BOARD_IP} afb-daemon --ws-client=unix:/run/user/0/apis/ws/helloworld --port=${PORT} --token='x' -v
+ssh root@${YOUR_BOARD_IP} afb-daemon --ws-client=unix:/run/platform/apis/ws/helloworld --port=${PORT} --token='x' -v
#On an other terminal
ssh root@${YOUR_BOARD_IP} afb-client-demo -H 127.0.0.1:${PORT}/api?token=x helloworld ping true
diff --git a/conf.d/wgt/config.xml.in b/conf.d/wgt/config.xml.in
index 69aaaae..1d5e221 100644
--- a/conf.d/wgt/config.xml.in
+++ b/conf.d/wgt/config.xml.in
@@ -11,8 +11,10 @@
</feature>
<feature name="urn:AGL:widget:provided-api">
<param name="helloworld" value="ws" />
+ <param name="helloworld-event" value="ws" />
</feature>
- <feature name="urn:AGL:widget:required-api">
+ <feature name="urn:AGL:widget:required-binding">
<param name="lib/afb-helloworld-skeleton.so" value="local" />
+ <param name="lib/afb-helloworld-subscribe-event.so" value="local" />
</feature>
</widget>