HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
base_app.cpp File Reference

This file contains an example for a HAN-FUN base application. More...

#include <iostream>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <string>
#include <unistd.h>
#include <forward_list>
#include <algorithm>
#include "hanfun.h"
#include "base.h"
#include "application.h"
#include "common.h"
#include "json/json.h"
+ Include dependency graph for base_app.cpp:

Go to the source code of this file.

Macros

#define HF_APP_CONFIG_FILE   "./hanfun.json"
 JSON database file. More...
 

Functions

 COMMAND (ListRegs, "lr", "lr:list registrations.")
 ListRegs List registrations command.
 
 COMMAND (ListBinds, "lb", "lb:list binds.")
 List binds command.
 
 COMMAND (Register, "r", "r 1 x:register device x.\ 0:exit registration mode.")
 Setup registration command. More...
 
 COMMAND (Deregister, "d", "d x:de-register device x.")
 De-register device command.
 
 COMMAND (Unbind, "u", "u x y:unbind device x with y.")
 Destroy bind command.
 
 COMMAND (GlobalBind, "gb", "gb 1:create bind to receive all interface events.\ "gb 0:remove bind to receive all interface events.")
 Global binds command.
 
 COMMAND (On, "on", "on d u:Send an ON command to device/unit pair.")
 Send ON command.
 
 COMMAND (Off, "off", "off d u:Send an OFF command to device/unit pair.")
 Send OFF command.
 
 COMMAND (Toggle, "toggle", "toggle d u:Send a TOGGLE command to device/unit pair.")
 Send TOGGLE command.
 
 COMMAND (DevInfo, "di", "di m d:Get device information mandatory attributes.\ "di a d:Get device information all attributes.")
 Get Device information.
 

Variables

uint16_t arg2 = STRTOL(args[1])
 Create bind command.
 

Detailed Description

This file contains an example for a HAN-FUN base application.

Version
1.5.3

For licensing information, please see the file 'LICENSE' in the root folder.

Initial development by Bithium S.A. [http://www.bithium.com]

Definition in file base_app.cpp.