Hi Geesara, Thank you for your so detail reply. It really help me.
I have 2 more questions: 1. As I have to use cdmf-devicetype-archetype for M3 release to create the new device type, Is that means the new device type CAN NOT be deploy in M4 or later release of IoTS (because of the package dependencies)? Then how to smoothly reuse that created new device type in the coming GA version of IoTS? Can I build the product-iot project (master) to create the newest deployable IoTS and use it for testing, but I think there may be some errors in device-deploy.xml and other places because the product-iot is still changing? 2. I have red the the content in "Writing Your Own Device Connector” before, but there is little information about UI design. I know that we can create extensions for customized UI development as IoTS use UUF framework. My questions is do we have a WYSIWYG IDE tools to design the ui extensions for my device types. Is it to use jaggery project in Developer Studio to design ui? or I need to wait for the next release of IoTS as those features are in that release? Thanks Geesara. ------ Zhanwen Zhou (Jason) 在 2016年4月12日,下午10:44,Geesara Prathap <[email protected]> 写道: > 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]. 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] 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
