Welcome to the IoTivity, let me answer in-lined.
BR Uze Choi
--------- Original Message ---------
Sender : yonggu ha <yghafiveh...@gmail.com>
Date : 2019-02-01 16:38 (GMT+9)
Title : [dev] I have qeustion about host information in ocf server.
Hello, I have a question for all developers. Sender : yonggu ha <yghafiveh...@gmail.com>
Date : 2019-02-01 16:38 (GMT+9)
Title : [dev] I have qeustion about host information in ocf server.
OCF Client first finds the device type when performing a device discovery.
Then, it looks for a resource that has host information corresponding to that device type.
Here, when registering an OCF server, the question is, can the developer create the device host information?
OCPlatform.findResource(host,
requestUri,
EnumSet.of(OrcConnectivityType.CT_DEFAULT),
new OnResourceFoundWithTypeListener (param)
);
>> Are you mentioning about server or client?
Upper code is for client.
Let me ignore upper code, then You can find the OCPlatform class for server setting.
So it's not just Android.
What do you do if you want to create multiple OCF servers in one application?
>> OCF server can have single OCF device which may include multiple resources.
For your information
This is not a question for OCF Bridge.
So it's not just Android.
What do you do if you want to create multiple OCF servers in one application?
>> OCF server can have single OCF device which may include multiple resources.
However, IoTivity-Lite can have multiple OCF device and of course each OCF device can its own several resources.
You can design multi-thread application, in each thread OCF server can initiated individually with iotivity. However, I'm not sure Java API also support this model yet.
For your information
This is not a question for OCF Bridge.
|
|
_._,_._,_
Links:
You receive all messages sent to this group.
View/Reply Online (#10162) |
Reply To Sender
| Reply To Group
|
Mute This Topic
| New Topic
Your Subscription |
Contact Group Owner |
Unsubscribe
[arch...@mail-archive.com]
_._,_._,_