Difference between revisions of "How to develop a new Protocol"

From AGILE IoT Wiki
Jump to: navigation, search
Line 1: Line 1:
 
[[File:Work-in-progress.png|50px]]
 
[[File:Work-in-progress.png|50px]]
  
# Create a repo with agile-<yourprotocolname>
+
== Create a repo with agile-<yourprotocolname> ==
 +
 +
The easiest way to develop an AGILE protocol is to take one of the examples. We recommend using [https://github.com/Agile-IoT/agile-ble agile-ble] or [https://github.com/Agile-IoT/agile-dummy agile-dummy]. These two repositories both use the Java implementation of the AGILE protocol API. Alternatively, you can also implement the same API. in other langauages.
  
  The easiest way to develop an AGILE protocol is to take one of the examples. We recommend using [https://github.com/Agile-IoT/agile-ble agile-ble] or [https://github.com/Agile-IoT/agile-dummy agile-dummy]. These two repositories both use the Java implementation of the AGILE protocol API. Alternatively, you can also implement the same API. in other langauages.
+
== Customize you agile-stack by adding your new container ==
  
# Customize you agile-stack by adding your new container
+
Make sure a proper Dockerfile is created as well (see examples in the above repositories), and add your protocol to the AGILE stack. For this, edit docker-compose.yml, and add a new block with the agile-<yourprotocolname> service. Make sure it connects to the Agile DBus as the example services above.
 
 
  Make sure a proper Dockerfile is created as well (see examples in the above repositories), and add your protocol to the AGILE stack. For this, edit docker-compose.yml, and add a new block with the agile-<yourprotocolname> service. Make sure it connects to the Agile DBus as the example services above.
 

Revision as of 13:10, 3 September 2018

Work-in-progress.png

Create a repo with agile-<yourprotocolname>

The easiest way to develop an AGILE protocol is to take one of the examples. We recommend using agile-ble or agile-dummy. These two repositories both use the Java implementation of the AGILE protocol API. Alternatively, you can also implement the same API. in other langauages.

Customize you agile-stack by adding your new container

Make sure a proper Dockerfile is created as well (see examples in the above repositories), and add your protocol to the AGILE stack. For this, edit docker-compose.yml, and add a new block with the agile-<yourprotocolname> service. Make sure it connects to the Agile DBus as the example services above.