![]() |
SmartCradle v1
Baby smart cradle
|
Database C module implementation. More...
#include "../inc/database.h"
Go to the source code of this file.
Functions | |
| int | send_temp_hum (float temp, float hum) |
| Update temperature and humidity in database. More... | |
| int | get_swing_flag () |
| Get the swing flag from database. More... | |
| int | get_live_flag () |
| Get the live flag from database. More... | |
| int | send_notification_flag (int notification_flag) |
| Update notification flag in database. More... | |
| int | send_swing_flag (int swing_flag) |
| Update swing flag in database. More... | |
| int | initDatabase () |
| Initializes all the functions. More... | |
Variables | |
| PyObject * | pName |
| PyObject * | pModule |
| PyObject * | pDict |
| PyObject * | pFuncSend_notification_flag |
| PyObject * | pFuncGet_live_flag |
| PyObject * | pFuncGet_swing_flag |
| PyObject * | pFuncSend_temp_hum |
| PyObject * | pFuncSend_swing_flag |
| PyObject * | pResult |
Database C module implementation.
Temperature and humidity sensor module implementation.
Definition in file database.c.
| int get_live_flag | ( | ) |
Get the live flag from database.
Definition at line 60 of file database.c.
| int get_swing_flag | ( | ) |
Get the swing flag from database.
Definition at line 32 of file database.c.
| int initDatabase | ( | ) |
Initializes all the functions.
Definition at line 121 of file database.c.
| int send_notification_flag | ( | int | notification_flag | ) |
Update notification flag in database.
| notification_flag | : 1 (set) or 0 (reset) |
Definition at line 89 of file database.c.
| int send_swing_flag | ( | int | swing_flag | ) |
Update swing flag in database.
| swing_flag | : 1 (set) or 0 (reset) |
Definition at line 105 of file database.c.
| int send_temp_hum | ( | float | temp, |
| float | hum | ||
| ) |
Update temperature and humidity in database.
| temp | Temperature |
| hum | Humidity |
Definition at line 16 of file database.c.
| PyObject * pDict |
Definition at line 12 of file database.c.
| PyObject * pFuncGet_live_flag |
Definition at line 13 of file database.c.
| PyObject * pFuncGet_swing_flag |
Definition at line 13 of file database.c.
| PyObject* pFuncSend_notification_flag |
Definition at line 13 of file database.c.
| PyObject * pFuncSend_swing_flag |
Definition at line 13 of file database.c.
| PyObject * pFuncSend_temp_hum |
Definition at line 13 of file database.c.
| PyObject * pModule |
Definition at line 12 of file database.c.
| PyObject* pName |
Definition at line 12 of file database.c.
| PyObject * pResult |
Definition at line 13 of file database.c.