Installation

Pre-requisites

This binding uses hostapd for launching the access point and dnsmasq for managing the ip addresses

Rebuilding from source

Mandatory packages

  • Declare redpesk repository: (see doc)

  • Regular packages to execute application framework binder, and to load bindings with it (see Download Packages for Binder)

  • Requested packages to compile the binding:
    • afb-cmake-modules
    • json-c
    • libsystemd
    • afb-binder
    • libmicrohttpd
    • afb-libhelpers-dev
    • afb-libcontroller-dev
    • lua
  • Requested packages to start the binding
    • hostapd
    • dnsmasq

Ubuntu/Debian

sudo apt install afb-binder afb-client afb-binding-dev cmake afb-cmake-modules libjson-c-dev libmicrohttpd-dev liblua5.3-dev afb-libhelpers-dev afb-libcontroller-dev hostapd dnsmasq liburcu-dev

Fedora

sudo dnf install  afb-binder afb-client afb-binding-devel cmake gcc g++ afb-cmake-modules json-c-devel libmicrohttpd-devel afb-libhelpers-devel afb-libcontroller-devel lua-devel hostapd dnsmasq liburcu-dev

Build for Linux distribution

cd wifiap-binding
mkdir -p build
cd build
cmake -DBUILD_TEST_WGT=TRUE ..
make
make widget

Test

If you want to run the test and the code coverage just execute code:

cd wifiap-binding
cd build
afm-test package package-test/ -m SERVICE