-
Notifications
You must be signed in to change notification settings - Fork 0
/
housekasa_device.h
42 lines (35 loc) · 1.5 KB
/
housekasa_device.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* HouseWiz - A simple home web server for control of Philips Wiz devices.
*
* Copyright 2020, Pascal Martin
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*
* housekasa_device.h - An implementation of the WiZ Connected protocol.
*
*/
const char *housekasa_device_initialize (int argc, const char **argv);
const char *housekasa_device_refresh (void);
int housekasa_device_changed (void);
int housekasa_device_count (void);
const char *housekasa_device_name (int point);
const char *housekasa_device_live_config (char *buffer, int size);
const char *housekasa_device_failure (int point);
int housekasa_device_commanded (int point);
time_t housekasa_device_deadline (int point);
int housekasa_device_get (int point);
int housekasa_device_set (int point, int state, int pulse);
void housekasa_device_periodic (time_t now);