Mathew Swabey / Mbed OS ELEC350_Project2

Dependencies:   serial_terminal sample_hardware PLL_Config SDCard BMP280 Networkbits TextLCD SDBlockDevice

Files at this revision

API Documentation at this revision

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

Networkbits.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
sample_hardware.lib Show annotated file Show diff for this revision Revisions of this file
--- 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