Skip to content
FogLAMP south plugin for the CoAP (Constrainted Applications Protocol) - FogLAMP acts as a CoAP server, allowing devices that support CoAP to push data to FogLAMP
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages/Debian/DEBIAN
python
test
.gitignore
Description
LICENSE
Package
README.rst
VERSION.south.coap
make_deb

README.rst

foglamp-south-coap

FogLAMP South Plugin for CoAP

Packaging for CoAP South

This repo contains the scripts used to create a foglamp-south-coap package.

The make_deb script

$ ./make_deb help

make_deb help [clean|cleanall]
This script is used to create the Debian package of foglamp south coap
Arguments:
 help     - Display this help text
 clean    - Remove all the old versions saved in format .XXXX
 cleanall - Remove all the versions, including the last one
$

Building a Package

Finally, run the make_deb command:

$ ./make_deb
The package root directory is         : /home/foglamp/foglamp-south-coap
The FogLAMP south coap version is     : 1.0.0
The package will be built in          : /home/foglamp/foglamp-south-coap/packages/build
The package name is                   : foglamp-south-coap-1.0.0

Populating the package and updating version file...Done.
Building the new package...
dpkg-deb: building package 'foglamp-south-coap' in 'foglamp-south-coap-1.0.0.deb'.
Building Complete.
$

The result will be:

$ ls -l packages/build/
total 12
drwxrwxr-x 4 foglamp foglamp 4096 Jul 11 16:24 foglamp-south-coap-1.0.0
-rw-r--r-- 1 foglamp foglamp 4574 Jul 11 16:24 foglamp-south-coap-1.0.0.deb
$

If you execute the make_deb command again, you will see:

$ ./make_deb
The package root directory is         : /home/foglamp/foglamp-south-coap
The FogLAMP south coap version is     : 1.0.0
The package will be built in          : /home/foglamp/foglamp-south-coap/packages/build
The package name is                   : foglamp-south-coap-1.0.0

Saving the old working environment as foglamp-south-coap-1.0.0.0001
Populating the package and updating version file...Done.
Saving the old package as foglamp-south-coap-1.0.0.deb.0001
Building the new package...
dpkg-deb: building package 'foglamp-south-coap' in 'foglamp-south-coap-1.0.0.deb'.
Building Complete.
$
$ ls -l packages/build/
total 24
drwxrwxr-x 4 foglamp foglamp 4096 Jul 11 16:26 foglamp-south-coap-1.0.0
drwxrwxr-x 4 foglamp foglamp 4096 Jul 11 16:24 foglamp-south-coap-1.0.0.0001
-rw-r--r-- 1 foglamp foglamp 4576 Jul 11 16:26 foglamp-south-coap-1.0.0.deb
-rw-r--r-- 1 foglamp foglamp 4574 Jul 11 16:24 foglamp-south-coap-1.0.0.deb.0001
$

... where the previous build is now marked with the suffix .0001.

Cleaning the Package Folder

Use the clean option to remove all the old packages and the files used to make the package. Use the cleanall option to remove all the packages and the files used to make the package.

Manual installation

If you wish to manually install this plugin you will require two Python packages to be installed

sudo pip3 install --upgrade "aiocoap[all]"
sudo pip3 install cbor2
You can’t perform that action at this time.