I have two questions regarding to the RD.
1.
I have compiled IoTivity 1.3.0 with command line:
scons RD_MODE=all
The executable files are generated in
out/linux/x86_64/debug/resource/csdk/resource-directory/samples
I executed ./rd_server and ./rd_publishingClient in different terminal windows.
In ./rd_publishingClient terminal, I also typed 1 and 2 for “Discovery RD” and “Publish”. Then nothing was shown.
Anyway, after I executed ./rd_queryClient in another new terminal, the result stopped in “Finding Resource light”.
I have referred - https://wiki.iotivity.org/resource_directory_-_programming_guide
Please guide me to run the RD server/client functionalities successfully.
2.
In IoTivity, “OCCreateResource” is used for resource registration in OCF server. Then OCF client can request resources’ information through /oic/res.
In the method “handlePublishRequest” [1], there is no code for resource registration, only DB-related code is available.
Then, a discovering device GET /oic/res to RD, how the published information can be returned as introduced in the OCF specification.
Is there some “hidden code” for the functionality? Can I customize the resource(/oic/res) in a OCF resource?
[1] https://github.com/iotivity/iotivity/blob/master/resource/csdk/resource-directory/src/rd_server.c
Please help me~
Thanks.
wq jin
_______________________________________________ iotivity-dev mailing list iotivity-dev@lists.iotivity.org https://lists.iotivity.org/mailman/listinfo/iotivity-dev