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: serial_terminal sample_hardware PLL_Config SDCard BMP280 Networkbits TextLCD SDBlockDevice
Revision 20:cdde0663c481, committed 2018-12-17
- Comitter:
- Swabey89
- Date:
- Mon Dec 17 17:51:14 2018 +0000
- Parent:
- 19:88d8359306a4
- Child:
- 21:2c438eeaab14
- Commit message:
- Networking thread added with new webpage. Requires work so that it doesn't lock
Changed in this revision
--- a/Networkbits.lib Mon Dec 17 16:11:07 2018 +0000 +++ b/Networkbits.lib Mon Dec 17 17:51:14 2018 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/Swabey89/code/Networkbits/#3b61aefa766d +https://os.mbed.com/users/Swabey89/code/Networkbits/#798b8b54238c
--- a/main.cpp Mon Dec 17 16:11:07 2018 +0000
+++ b/main.cpp Mon Dec 17 17:51:14 2018 +0000
@@ -91,6 +91,7 @@
Thread serial_thread(osPriorityAboveNormal);
Thread SDqueue_thread;
Thread LCDqueue_thread;
+Thread Network_thread;
//Timers
Ticker sample;
@@ -116,9 +117,11 @@
SDqueue_thread.start(callback(&SDqueue, &EventQueue::dispatch_forever));
LCDqueue_thread.start(callback(&LCDqueue, &EventQueue::dispatch_forever));
serial_thread.start(callback(&serialqueue, &EventQueue::dispatch_forever));
+ Network_thread.start(networktest);
producer_thread.start(sampleProducer);
consumer_thread.start(sampleConsumer);
+
//Attach ISRs
sample.attach(&sampleISR, sample_rate);
pc->attach(serialISR, Serial::RxIrq);
@@ -218,7 +221,7 @@
for (int i = 0; i<BUFFERSIZE; i++)
{
- fprintf(fp, "%6.1f,%.2f\n\r", buffer[i].gettemp(), buffer[i].getpress()); //just these for now
+ fprintf(fp, "%6.1f,%.2f\n\r", buffer[i].gettemp(), buffer[i].getpress());
}
fclose(fp);
--- a/sample_hardware.lib Mon Dec 17 16:11:07 2018 +0000 +++ b/sample_hardware.lib Mon Dec 17 17:51:14 2018 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/Swabey89/code/sample_hardware/#fd558883e713 +https://os.mbed.com/users/Swabey89/code/sample_hardware/#b1317441025d
