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@11:dbc310addbf6, 2019-03-19 (annotated)
- Committer:
- loicguibert
- Date:
- Tue Mar 19 20:48:48 2019 +0000
- Revision:
- 11:dbc310addbf6
- Parent:
- 5:0d9e292a9d06
- Child:
- 12:856286ad4cdc
Point 5 done
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 | 5:0d9e292a9d06 | 14 | Logger logger(true); |
loicguibert | 5:0d9e292a9d06 | 15 | |
loicguibert | 5:0d9e292a9d06 | 16 | NRFDevKit devKit(logger); |
loicguibert | 5:0d9e292a9d06 | 17 | |
loicguibert | 11:dbc310addbf6 | 18 | WeatherStation weather(devKit, logger, BLE::Instance()); |
loicguibert | 0:cbc40e6ff273 | 19 | |
loicguibert | 5:0d9e292a9d06 | 20 | logger.log("Code written by Loic Guibert\r\n"); |
loicguibert | 4:bfe306335065 | 21 | |
loicguibert | 5:0d9e292a9d06 | 22 | weather.start(); |
loicguibert | 0:cbc40e6ff273 | 23 | |
loicguibert | 0:cbc40e6ff273 | 24 | } |