Library for my home monitoring classes and serial communication protocol. It monitors temperature and movement on the mbed application board.

Dependents:   FinalProject

Committer:
groletter
Date:
Sun Sep 01 23:35:18 2013 +0000
Revision:
0:3f846fc933a2
Child:
2:84432add9142
My library for temperature and motion monitoring and communication over a USB Serial device.  Requires host-side code.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
groletter 0:3f846fc933a2 1 #ifndef HOME_MON_COMM_H
groletter 0:3f846fc933a2 2 #define HOME_MON_COMM_H
groletter 0:3f846fc933a2 3
groletter 0:3f846fc933a2 4 #include "USBHomeMon.h"
groletter 0:3f846fc933a2 5 #include <stdio.h>
groletter 0:3f846fc933a2 6 #include <vector>
groletter 0:3f846fc933a2 7
groletter 0:3f846fc933a2 8 bool send_alert(alert_type alert);
groletter 0:3f846fc933a2 9 bool host_wait();
groletter 0:3f846fc933a2 10 bool check_connection();
groletter 0:3f846fc933a2 11 char rec_command() ;
groletter 0:3f846fc933a2 12 bool send_samples(std::vector<std::string> samples);
groletter 0:3f846fc933a2 13 double get_sample(void);
groletter 0:3f846fc933a2 14 void host_command_resp(msg_type msg, Temperature &temp, Motion &motion);
groletter 0:3f846fc933a2 15 msg_type parse_msg(char msg) ;
groletter 0:3f846fc933a2 16
groletter 0:3f846fc933a2 17 #endif