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.
Diff: main.cpp
- Revision:
- 2:54c537a2569a
- Parent:
- 1:dc648c5624b9
--- a/main.cpp Wed Jan 10 09:50:29 2018 +0000
+++ b/main.cpp Fri Jan 26 13:20:05 2018 +0000
@@ -2,13 +2,13 @@
#include "TextLCD.h"
#include "operation.h"
#include "BMP280.h"
-//#include "Networkbits.hpp"
+#include "Networkbits.hpp"
Ticker display; // timer interrupt
Ticker second_pass; // timer interrupt
InterruptIn button(USER_BUTTON); // setting the b;ue button on the board
-Thread t1,t2; // class allows defining, creating, and controlling thread functions in the system.
+Thread t1,t2,t3; // class allows defining, creating, and controlling thread functions in the system.
@@ -20,13 +20,14 @@
{
button_select_date();
}
- bmp280.initialize(); // intialisation of the BMP280 sesnor
+ bmp.initialize(); // intialisation of the BMP280 sesnor
pc.printf("putty ready\n\r");
display.attach(&dis_store_sensor_data, 2.0);
button.rise(&disp_check);
second_pass.attach(&tick, 1.0);
t1.start(disp_putty); // start thread of the function disp_putty
t2.start( disp_check); // start thread of the function disp_putty
+ t3.start( networktest); // start thread of the function networktest
while(1)
{