Open qiaojingx opened 6 years ago
I was able to see the res from k64f if I run OcfMultiServer.js and then OcfClient.js:
jimmy@jimmy-dev:~/projects/zephyrjs/zephyr.js (update-doc)$ ./outdir/linux/release/jslinux samples/OcfClient.js --noexit
Started OCF client findResources() was successful, deviceId=ocf://c9920b68-2ab7-4e7e-5169-346b073c448e retrieve() was successful, deviceId=ocf://c9920b68-2ab7-4e7e-5169-346b073c448e retrieve() was successful, deviceId=ocf://c9920b68-2ab7-4e7e-5169-346b073c448e retrieve() was successful, deviceId=ocf://c9920b68-2ab7-4e7e-5169-346b073c448e retrieve() was successful, deviceId=ocf://c9920b68-2ab7-4e7e-5169-346b073c448e retrieve() was successful, deviceId=ocf://c9920b68-2ab7-4e7e-5169-346b073c448e retrieve() was successful, deviceId=ocf://c9920b68-2ab7-4e7e-5169-346b073c448e retrieve() was successful, deviceId=ocf://c9920b68-2ab7-4e7e-5169-346b073c448e retrieve() was successful, deviceId=ocf://c9920b68-2ab7-4e7e-5169-346b073c448e retrieve() was successful, deviceId=ocf://c9920b68-2ab7-4e7e-5169-346b073c448e
There's no OcfMultiClient.js file, where is this client app?
Yes, there is no OcfMultiClient.js file in zephyr.js, we created it ourselves for OcfMultiSensor.js testing. The code is in Test Code Section above.
Description
when first retrieve from a multiple resources ocfserver on K64F, no sensor value get. This issue is not reproduced on Arduino101.
Test Code
OcfMultiSensor.js
OcfMultiClient.js code:
Steps to Reproduction
make BOARD=frdm_k64f JS=samples/OcfMultiSensor.js
cp outdir/frdm_k64f/zephyr/zephyr.bin /media/<username>/MBED/
./outdir/linux/release/jslinux ../../OcfMultiClient.js --noexit
Actual Result
No sensor value is returned at the beginning.
Expected Result
Can get sensor value from the beginning.
Test Builds
Additional Information