Set up the control plane

In its core runs Python, the repository can be found in SDWSN-Controller.

Control plane Requirements

Installing the controller

Install

Before jumping into the following steps, you at least need to install Python, and Docker (For Cooja simulations).

Then, install the package, execute the below commands.

  1. Clone the repository.

    $ git clone https://github.com/fdojurado/SDWSN-controller.git
    
  2. You may want to create a virtual environment, in the repository folder run.

    $ python -m venv venv
    
  3. Activate the virtual environment.

    $ source venv/bin/activate
    
  4. In the repository folder run.

    $ python -m pip install .
    

Run under development

You may want to run the package in development mode by.

$ python -m pip install -e .

Verify control plane installation

You can verify the installation of the control plane by running.

$ python -m pip list

You should be able to see the package sdwsn-controller in the list.

Running the data plane in Cooja

If you want to run the data plane in the Cooja network simulator, you first need to setup your data plane by following the instructions in here.