And
I tried the code like

std::cout << "Created Platform..." << std::endl;

        PluginManager *m_pm = new PluginManager();

        std::cout << "==== 1st TEST CASE ===" << std::endl;
        std::cout << "======================" << std::endl;
        std::cout << "start light Plugin by Resource Type"  << std::endl;

        m_pm->startPlugins("ResourceType", "oic.light");

// After that, the number of plugin is 0
            std::cout << " number of plugin\n" << m_pm->getPlugins().size() 
<<std::endl;

It seems like startPlugins doesn?t create plugin successfully. Do you know how 
to fix it?

Thanks!

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Li, Hao H
Sent: Wednesday, April 01, 2015 2:25 PM
To: yh_.joo at samsung.com; iotivity-dev at lists.iotivity.org
Subject: Re: [dev] questions about Protocol Plug-in Manager

Hi, YoungHyun

firstly, start fan plugin. After then, execute mqtt client program.

How to start fan plugin? Any example app?

Thanks

From: Younghyun Joo [mailto:[email protected]]
Sent: Wednesday, April 01, 2015 2:16 PM
To: Li, Hao H; iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at 
lists.iotivity.org>
Subject: Re: [dev] questions about Protocol Plug-in Manager


Hi Li



You gave me 2 questions. and I will give you answer



________________________________
I have 2 questions

1.      It shows cp_load_plugin_descriptor failed, does anyone know how the 
problem is?

- it works well, Plugin Manager check sub-directory recursively, and these 
messages mean there is no plugin in that directory


2.      output shows
start light Plugin by Resource Type
Finding Resource...
- firstly, start fan plugin. After then, execute mqtt client program.
it can find resource.
________________________________

that's all.



If you have more question, feel free to ask me



Thanks.

Best Regards..

Younghyun Joo



- SWC IoT Solution Lab. ??? ?? ??



#??: ???? ??.



________________________________

Younghyun, Joo | SW Assist Engineer

IoT(Internet of Things) Solution Lab.,

Web & Convergence Team, SoftWare Center,

SAMSUNG ELECTRONICS CO., LTD.

 Mobile  +82.10.3794.8718

 E_mail   yh_.joo at samsung.com<mailto:yh_.joo at samsung.com>

________________________________







------- Original Message -------

Sender : Li, Hao H<hao.h.li at intel.com<mailto:hao.h.li at intel.com>>

Date : 2015-04-01 14:52 (GMT+09:00)

Title : [dev] questions about Protocol Plug-in Manager


Hi,
I am running./mqttclient in service/protocol-plugin/sample-app/linux/mqtt  
folder
Current path is ../../../plugins
cp_load_plugin_descriptor failed
installPlugin failed path : ../../../plugins/mqtt-fan
cp_load_plugin_descriptor failed
installPlugin failed path : ../../../plugins/mqtt-fan/lib/cpp
cp_load_plugin_descriptor failed
installPlugin failed path : ../../../plugins/mqtt-light

====== Plugins List ======
  ID                             NAME            STATE           TYPE

start light Plugin by Resource Type
Finding Resource...

I have 2 questions

1.      It shows cp_load_plugin_descriptor failed, does anyone know how the 
problem is?


2.      output shows
start light Plugin by Resource Type
Finding Resource...

Is there any other app relate to mqttclient for showing more resources?

Thanks!

Li Hao
Best Regards
Email:hao.h.li at intel.com<mailto:hao.h.li at intel.com>

Software and Service Group
Intel Asia-Pacific Research & Development Ltd.
Tel: 86-21-61167039


[cid:image001.gif at 01D06C8F.47F55D10]

[http://ext.samsung.net/mailcheck/SeenTimeChecker?do=1dc10d3d9c28bbee78ed9274c62e854a4446e668817d5d984a8785d7a9505163bcd83cdd35d22ceec7b41e955949e5c8a728c55b39cc59eacf878f9a26ce15a0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150401/ecb87bfa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 13168 bytes
Desc: image001.gif
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150401/ecb87bfa/attachment.gif>

Reply via email to