Hi Jason,

I have forked the product-iot project, cloned into my desktop. After
running mvn eclipse:eclipse in product-iot, I can only find 3 projects
(cdmf-devicetype-archetype, mdm-android-agent-archetype,
org.wso.iot.admin.styles) when I import projects in product-iot folder. Is
that right?

This is not the right approach you need to follow. First of all, you don't
need to download product-iots. What you need is download IoTS pack from here
[1] <https://github.com/wso2/product-iots/releases/tag/IoTS-1.0.0-M3>. Then
there are some sample device type plugins which are in the sample folder
you can try out. I hope you have tried how to create new device type plugin
using maven archetype by now.

How can I import the whole iot project and start creating my blocks and
building them with Maven?

So open any samples using wso2 developer studio or any other IDE which
support maven as a maven project. In M3, some of the dependencies are
getting as system dependencies. So don't move or relocated sample device
types plugins from sample folder. So once you created device type plugin
from maven archetype you can do any changes to each component as you
required. But device-deployer.xml can't use to redeploy your device type
plugin. This feature wasn't included in M3 pack. What you can do is as an
example let's say you have done some changes on  controller or manager web
app. Then you have to copy and paste each web app into
/repository/deployment/server/webapps. Listed below each component where to
copy once done some changes on it.

controller/manager web app -  /repository/deployment/server/webapps
plugin -                                    /repository/components/dropins
(need to restart server to apply new changes)
analytics carbonapps -             /repository/deployment/server/carbonapps
UI units -
 /repository/deployment/server/jaggeryapps/devicemgt/app/units


Note: this structure is applied to M3 and all paths are taken relative to
IoTS_HOME.
This[2]
<https://docs.wso2.com/display/IoTS100/Writing+Your+Own+Device+Connector>explains
each and every component separately how to write your own device type
plugin.


For example, to create and build a new device type with
cdmf-devicetype-archetype in Developer Studio.

This feature will be available in next release of IoTS.


1.https://github.com/wso2/product-iots/releases/tag/IoTS-1.0.0-M3
2.https://docs.wso2.com/display/IoTS100/Writing+Your+Own+Device+Connector

Thanks,
Geesara


On Tue, Apr 12, 2016 at 6:49 PM, 云展智创 <[email protected]> wrote:

> Hi all,
>
> Could you give me some advices on how to start building iot device types
> in IoTS using Developer Studio?
>
> I have forked the product-iot project, cloned into my desktop. After
> running mvn eclipse:eclipse in product-iot, I can only find 3 projects
> (cdmf-devicetype-archetype, mdm-android-agent-archetype,
> org.wso.iot.admin.styles) when I import projects in product-iot folder. Is
> that right? How can I import the whole iot project and start creating my
> blocks and building them with Maven? For example, to create and build a new
> device type with cdmf-devicetype-archetype in Developer Studio.
>
> And how can I design the ui of the new iot device type plugin with
> Developer Studio? Is that WYSIWYG design interface with Developer Studio?
>
> Thanks.
>
> ------
> Zhanwen Zhou (Jason)
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Geesara Prathap Kulathunga
Software Engineer
WSO2 Inc; http://wso2.com
Mobile : +940772684174
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to