Temp Fork
Dependencies: MMA8451Q Multi_WS2811 NVIC_set_all_priorities TSI cc3000_hostdriver_mbedsocket mbed
Fork of CubicHand by
GloveWifi.h@19:e751d075e2e6, 2014-12-08 (annotated)
- Committer:
- kalbers
- Date:
- Mon Dec 08 23:54:33 2014 +0000
- Revision:
- 19:e751d075e2e6
- Parent:
- 15:b48ac00af0b8
Put Reconnect error recovering in GloveWifi instead of DataGlove;
Who changed what in which revision?
User | Revision | Line number | New 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 | 15:b48ac00af0b8 | 17 | void Reconnect(); |
kalbers | 19:e751d075e2e6 | 18 | int GetDataFromBuffer(char * buf, int size); |
kalbers | 3:5f5d75cba8e1 | 19 | uint8_t SendDataToGlove(uint8_t * buf, uint16_t size); |
kalbers | 3:5f5d75cba8e1 | 20 | |
kalbers | 3:5f5d75cba8e1 | 21 | private: |
kalbers | 13:c701f1122797 | 22 | TCPSocketConnection * socket; |
kalbers | 3:5f5d75cba8e1 | 23 | cc3000 * wifi; |
kalbers | 19:e751d075e2e6 | 24 | uint32_t DropCount; |
kalbers | 3:5f5d75cba8e1 | 25 | |
kalbers | 3:5f5d75cba8e1 | 26 | }; |