Temp Fork

Dependencies:   MMA8451Q Multi_WS2811 NVIC_set_all_priorities TSI cc3000_hostdriver_mbedsocket mbed

Fork of CubicHand by Model-Based Team

Committer:
kalbers
Date:
Fri Dec 05 21:35:37 2014 +0000
Revision:
3:5f5d75cba8e1
Child:
13:c701f1122797
Added DataGlove and DataWifi Class, cleaned up main to use these files.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kalbers 3:5f5d75cba8e1 1 #include "mbed.h"
kalbers 3:5f5d75cba8e1 2 #include "cc3000.h"
kalbers 3:5f5d75cba8e1 3 #include "TCPSocketConnection.h"
kalbers 3:5f5d75cba8e1 4
kalbers 3:5f5d75cba8e1 5 class GloveWifi
kalbers 3:5f5d75cba8e1 6 {
kalbers 3:5f5d75cba8e1 7 public:
kalbers 3:5f5d75cba8e1 8 GloveWifi();
kalbers 3:5f5d75cba8e1 9 ~GloveWifi();
kalbers 3:5f5d75cba8e1 10 void Init();
kalbers 3:5f5d75cba8e1 11 void Connect();
kalbers 3:5f5d75cba8e1 12 void Disconnect();
kalbers 3:5f5d75cba8e1 13 uint8_t GetDataFromBuffer(uint8_t * buf, uint16_t size);
kalbers 3:5f5d75cba8e1 14 uint8_t SendDataToGlove(uint8_t * buf, uint16_t size);
kalbers 3:5f5d75cba8e1 15
kalbers 3:5f5d75cba8e1 16 private:
kalbers 3:5f5d75cba8e1 17 const char* ECHO_SERVER_ADDRESS;
kalbers 3:5f5d75cba8e1 18 const int ECHO_SERVER_PORT;
kalbers 3:5f5d75cba8e1 19 TCPSocketConnection socket;
kalbers 3:5f5d75cba8e1 20 cc3000 * wifi;
kalbers 3:5f5d75cba8e1 21 Serial * pc;
kalbers 3:5f5d75cba8e1 22
kalbers 3:5f5d75cba8e1 23 };