SmartCradle v1
Baby smart cradle
database.h
Go to the documentation of this file.
1
10#ifndef DATABASE_H
11#define DATABASE_H
12
13#include </home/carvalho/Downloads/buildroot/buildroot-2021.02.6/output/host/include/python3.9/Python.h>
14
15#define ERROR 7
16
22int initDatabase();
23
31int send_temp_hum( float temp, float hum);
32
38int get_swing_flag();
39
45int get_live_flag();
46
53int send_notification_flag(int notification_flag);
54
61int send_swing_flag(int swing_flag);
62
63#endif
int send_swing_flag(int swing_flag)
Update swing flag in database.
Definition: database.c:105
int send_notification_flag(int notification_flag)
Update notification flag in database.
Definition: database.c:89
int send_temp_hum(float temp, float hum)
Update temperature and humidity in database.
Definition: database.c:16
int initDatabase()
Initializes all the functions.
Definition: database.c:121
int get_swing_flag()
Get the swing flag from database.
Definition: database.c:32
int get_live_flag()
Get the live flag from database.
Definition: database.c:60