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.
main.cpp@28:4c0d163ba01a, 2019-06-10 (annotated)
- Committer:
- spadaaa
- Date:
- Mon Jun 10 18:30:41 2019 +0000
- Revision:
- 28:4c0d163ba01a
- Parent:
- 12:856286ad4cdc
final test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
loicguibert | 0:cbc40e6ff273 | 1 | #include "mbed.h" |
loicguibert | 0:cbc40e6ff273 | 2 | #include "rtos.h" |
loicguibert | 0:cbc40e6ff273 | 3 | |
loicguibert | 0:cbc40e6ff273 | 4 | #include "Logger.h" |
loicguibert | 0:cbc40e6ff273 | 5 | |
loicguibert | 4:bfe306335065 | 6 | #include "NRFDevKit.h" |
loicguibert | 4:bfe306335065 | 7 | #include "WeatherStation.h" |
loicguibert | 11:dbc310addbf6 | 8 | #include "GAPPeripheral.h" |
loicguibert | 11:dbc310addbf6 | 9 | #include "ble/BLE.h" |
loicguibert | 0:cbc40e6ff273 | 10 | |
loicguibert | 1:4010b3131918 | 11 | |
loicguibert | 0:cbc40e6ff273 | 12 | int main () { |
loicguibert | 1:4010b3131918 | 13 | |
loicguibert | 12:856286ad4cdc | 14 | // Instantiate of various data members |
loicguibert | 5:0d9e292a9d06 | 15 | Logger logger(true); |
loicguibert | 5:0d9e292a9d06 | 16 | |
loicguibert | 5:0d9e292a9d06 | 17 | NRFDevKit devKit(logger); |
loicguibert | 5:0d9e292a9d06 | 18 | |
loicguibert | 12:856286ad4cdc | 19 | // Instantiate of the station |
loicguibert | 11:dbc310addbf6 | 20 | WeatherStation weather(devKit, logger, BLE::Instance()); |
loicguibert | 0:cbc40e6ff273 | 21 | |
spadaaa | 28:4c0d163ba01a | 22 | logger.log("Code written by spada gaetan\r\n"); |
loicguibert | 4:bfe306335065 | 23 | |
loicguibert | 12:856286ad4cdc | 24 | // Station's launch |
loicguibert | 5:0d9e292a9d06 | 25 | weather.start(); |
loicguibert | 0:cbc40e6ff273 | 26 | |
loicguibert | 0:cbc40e6ff273 | 27 | } |