HEADS-project / training

Training material to get started with the HEADS technologies
10 stars 16 forks source link

How to assign a port number in ThingML configuration #77

Closed skorsky closed 9 years ago

skorsky commented 9 years ago

Is it possible to assign a port number for a port in a ThingML configuration? If not, how can I configure a port number?

brice-morin commented 9 years ago

A port you use internally in a component? Or a port that will then be mapped to a Kevoree port. In the first case, you can declare a property in your thing. Then you can use set myinstance.myproperty = xxx in your configuration.

skorsky commented 9 years ago

It's a port the component should use to connect to the msmsgbroker. so it is mapped to a Kevoree port.

brice-morin commented 9 years ago

Then I guess you can set that in a KevScript? We can look later on how we can have that information directly in the ThingML (probably using some annotations)

skorsky commented 9 years ago

This means, I modify the generated KevScript?

brice-morin commented 9 years ago

For now, yes. Anyway, the generated KevScript is not intented to be final, the service operator should then update it before deployment

skorsky commented 9 years ago

OK, thanks for help.