... | ... | @@ -27,11 +27,13 @@ To interconnect services and things, developer has to generate a middleware arti |
|
|
|
|
|
![Binding Component](https://gitlab.inria.fr/pntumba/vsb-web-console/raw/master/vsbwebconsole/WebContent/css/images/BC.png)
|
|
|
|
|
|
To generate the BC, create a maven based project
|
|
|
For instance based on the above figure, to generate the BC we need to follow this steps :
|
|
|
|
|
|
* Create a maven based project
|
|
|
|
|
|
* Creating the Generic Interface Description Language (GIDL) of the service or thing to interconnect
|
|
|
|
|
|
For instance, relying on the above figure, a developer has to create the GIDL of the Temperature ressource. By using the eclipse plugin or the [VSB Web Console](https://gitlab.inria.fr/pntumba/vsb-web-console/wikis/home).
|
|
|
Relying on the above figure, we have to create the GIDL of the Temperature ressource. By using the eclipse plugin or the [VSB Web Console](https://gitlab.inria.fr/pntumba/vsb-web-console/wikis/home).
|
|
|
|
|
|
* Updating the pom.xml
|
|
|
|
... | ... | @@ -57,9 +59,9 @@ Add dependecy : |
|
|
|
|
|
```
|
|
|
VsbManager vsbm = new VsbManager();
|
|
|
vsbm.generateWar(PATH_TO_GIDL, ProtocolType.REST, "REST_to_COAP");
|
|
|
vsbm.setServiceEndpoint("HOST-IP_TEMPERATURE_SENSOR", "HOST-PORT_TEMPERATURE_SENSOR");
|
|
|
vsbm.setBusEndpoint("HOST-IP_CLIENT","HOST-PORT_CLIENT");
|
|
|
vsbm.generateWar(PATH_TO_GIDL, ProtocolType.REST, "REST_to_COAP");
|
|
|
```
|
|
|
After executing this lines of codes, the BC will be generated into the temporary folder of the system.
|
|
|
|
... | ... | |