School project.
Dependencies: Timezone NTPClient BSP_DISCO_F746NG Grove_temperature
setup_functions.h File Reference
Functions used for initial setup of the unit, specifically to set the building and room where unit installation is planned. More...
Go to the source code of this file.
Functions | |
void | setup_set_room_and_building () |
Declaration of the function (prototype) to allow other functions to call it. | |
void | setup_confirm () |
Prompt user for confirmation if happy with inputted information 1/13/2021. | |
void | setup_show_settings () |
Show inputted information, and call setup_confirm to ask for confirmation. | |
void | setup_run_setup () |
Function to run the initial setup process. |
Detailed Description
Functions used for initial setup of the unit, specifically to set the building and room where unit installation is planned.
- Date:
- January 13, 2021
Definition in file setup_functions.h.
Function Documentation
void setup_confirm | ( | ) |
Prompt user for confirmation if happy with inputted information 1/13/2021.
This will empty the buffer and will avoid already inputted data to be used in scanf etc.
printf("setup_confirm function end\n");
Definition at line 18 of file setup_functions.h.
void setup_run_setup | ( | ) |
Function to run the initial setup process.
1/13/2021
Definition at line 86 of file setup_functions.h.
void setup_set_room_and_building | ( | ) |
Declaration of the function (prototype) to allow other functions to call it.
Function to set building and room.
- Date:
- 1/13/2021
Will call setup_show_settings to show what has been inputted. 1/13/2021
1/14/2021 When using s, string will be terminated when white space is found. Therefore, set it to read white spaces with %[^
] Also, changed wording to reduce "please" sentences.
printf("Please set the building (maximum 30 characters): "); scanf("%30s", building); printf("Please set the room (maximum 30 characters): "); scanf("%30s", room);
temp statement to clear buffer
Definition at line 60 of file setup_functions.h.
void setup_show_settings | ( | ) |
Show inputted information, and call setup_confirm to ask for confirmation.
1/13/2021
Definition at line 46 of file setup_functions.h.
Generated on Fri Jul 15 2022 03:26:25 by 1.7.2