Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BME280 BMP280 TextLCD
SERIAL.cpp@26:78f5e454e59f, 2018-01-03 (annotated)
- Committer:
- chills
- Date:
- Wed Jan 03 15:38:40 2018 +0000
- Revision:
- 26:78f5e454e59f
- Parent:
- 25:36699ed589ab
- Child:
- 47:6d128e500875
2018_01_03 15:35; Read All, Stop, Delete and Delete All working.;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| thomasmorris | 25:36699ed589ab | 1 | #include "SERIAL.hpp" |
| thomasmorris | 25:36699ed589ab | 2 | |
| thomasmorris | 25:36699ed589ab | 3 | |
| thomasmorris | 25:36699ed589ab | 4 | void DELETE_ALL() |
| thomasmorris | 25:36699ed589ab | 5 | { |
| chills | 26:78f5e454e59f | 6 | |
| thomasmorris | 25:36699ed589ab | 7 | } |
| thomasmorris | 25:36699ed589ab | 8 | void READ_n() |
| thomasmorris | 25:36699ed589ab | 9 | { |
| thomasmorris | 25:36699ed589ab | 10 | |
| thomasmorris | 25:36699ed589ab | 11 | } |
| thomasmorris | 25:36699ed589ab | 12 | void DELETE_n() |
| thomasmorris | 25:36699ed589ab | 13 | { |
| thomasmorris | 25:36699ed589ab | 14 | |
| thomasmorris | 25:36699ed589ab | 15 | } |
| thomasmorris | 25:36699ed589ab | 16 | float SETDATE() |
| thomasmorris | 25:36699ed589ab | 17 | { |
| thomasmorris | 25:36699ed589ab | 18 | float Time; |
| thomasmorris | 25:36699ed589ab | 19 | cout << "Please enter the Time in Seconds:" << endl; |
| thomasmorris | 25:36699ed589ab | 20 | cin >> Time; // Needs input checking |
| thomasmorris | 25:36699ed589ab | 21 | return Time; |
| thomasmorris | 25:36699ed589ab | 22 | } |
| thomasmorris | 25:36699ed589ab | 23 | float SETT()//Set the Sampling Rate |
| thomasmorris | 25:36699ed589ab | 24 | { |
| thomasmorris | 25:36699ed589ab | 25 | float Sampling_Time; |
| thomasmorris | 25:36699ed589ab | 26 | cout << "Please enter the sampling rate in Seconds:" << endl; |
| thomasmorris | 25:36699ed589ab | 27 | cin >> Sampling_Time; // Needs input checking |
| thomasmorris | 25:36699ed589ab | 28 | return Sampling_Time; |
| thomasmorris | 25:36699ed589ab | 29 | } |
| thomasmorris | 25:36699ed589ab | 30 | void STATE() |
| thomasmorris | 25:36699ed589ab | 31 | { |
| thomasmorris | 25:36699ed589ab | 32 | |
| thomasmorris | 25:36699ed589ab | 33 | } |
| thomasmorris | 25:36699ed589ab | 34 | void LOGGING() |
| thomasmorris | 25:36699ed589ab | 35 | { |
| thomasmorris | 25:36699ed589ab | 36 | |
| thomasmorris | 25:36699ed589ab | 37 | } |
| thomasmorris | 25:36699ed589ab | 38 | void HELP() |
| thomasmorris | 25:36699ed589ab | 39 | { |
| thomasmorris | 25:36699ed589ab | 40 | //Mutex This |
| thomasmorris | 25:36699ed589ab | 41 | cout << "Avalible Commands are: "<< endl; |
| thomasmorris | 25:36699ed589ab | 42 | cout << "READ ALL , DELETE ALL READ<n> ,DELETE<n> , SETDATE<dd> <mm> <yyyy> , SETTIME <hh> <mm> <ss>, SETT <T> , STATE <x>, LOGGING <x>, HELP"<< endl; |
| thomasmorris | 25:36699ed589ab | 43 | } |