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:
Sat Dec 06 23:25:32 2014 +0000
Revision:
13:c701f1122797
Parent:
3:5f5d75cba8e1
Child:
15:b48ac00af0b8
Fixed Glove Wifi class to initialize correctly.

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 13:c701f1122797 5 #pragma once
kalbers 13:c701f1122797 6
kalbers 13:c701f1122797 7 using namespace mbed_cc3000;
kalbers 13:c701f1122797 8
kalbers 3:5f5d75cba8e1 9 class GloveWifi
kalbers 3:5f5d75cba8e1 10 {
kalbers 3:5f5d75cba8e1 11 public:
kalbers 3:5f5d75cba8e1 12 GloveWifi();
kalbers 3:5f5d75cba8e1 13 ~GloveWifi();
kalbers 3:5f5d75cba8e1 14 void Init();
kalbers 3:5f5d75cba8e1 15 void Connect();
kalbers 3:5f5d75cba8e1 16 void Disconnect();
kalbers 3:5f5d75cba8e1 17 uint8_t GetDataFromBuffer(uint8_t * buf, uint16_t size);
kalbers 3:5f5d75cba8e1 18 uint8_t SendDataToGlove(uint8_t * buf, uint16_t size);
kalbers 3:5f5d75cba8e1 19
kalbers 3:5f5d75cba8e1 20 private:
kalbers 13:c701f1122797 21 TCPSocketConnection * socket;
kalbers 3:5f5d75cba8e1 22 cc3000 * wifi;
kalbers 3:5f5d75cba8e1 23
kalbers 3:5f5d75cba8e1 24 };