An embedded server sending sensor information over the network to a remote client side process parsing the data
Dependencies: EthernetInterface NTPClient TimeInterface WebSocketClient mbed-rtos mbed ST_Events-old
Diff: data_logger.h
- Branch:
- USB-logging
- Revision:
- 7:e9d4a4972e50
- Parent:
- 3:221997836268
--- a/data_logger.h Sun Sep 17 02:32:55 2017 +0000 +++ b/data_logger.h Sun Sep 17 17:43:20 2017 -0400 @@ -15,11 +15,12 @@ int i = 0; char appbuffer[105]; //Application buffer int len = 105; //Length of the buffer -float cycle_time; +float cycle_time; //Drum crushing cycle time int p_press = 0; int id_press = 0; -float p_strain = 0; -float id_strain = 0; +float p_strain = 0; //Peak strain +float id_strain = 0; //Idle stain +int eth_cxn_status; //Ethernet connection status //int samples[]; @@ -31,7 +32,7 @@ //ISR on the falling edge of the digital input stopping the cycle timer and restarting the periodic reporting thread void idle_report(void); -//sends the XML markup payload while the machine is idle +//sends the XML markup payload report while the machine is idle float strainCalc(void); //Calculate the strain from the analog input signal received from the strain gauge