![]() |
SmartCradle v1
Baby smart cradle
|
Database module header. More...
#include </home/carvalho/Downloads/buildroot/buildroot-2021.02.6/output/host/include/python3.9/Python.h>

Go to the source code of this file.
Macros | |
| #define | ERROR 7 |
Functions | |
| int | initDatabase () |
| Initializes all the functions. More... | |
| 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... | |
| #define ERROR 7 |
Definition at line 15 of file database.h.
| 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.