Temp Fork
Dependencies: MMA8451Q Multi_WS2811 NVIC_set_all_priorities TSI cc3000_hostdriver_mbedsocket mbed
Fork of CubicHand by
GloveWifi.h@15:b48ac00af0b8, 2014-12-07 (annotated)
- Committer:
- kalbers
- Date:
- Sun Dec 07 21:49:33 2014 +0000
- Revision:
- 15:b48ac00af0b8
- Parent:
- 13:c701f1122797
- Child:
- 19:e751d075e2e6
Added a reconnect to GloveWifi.
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 | 3:5f5d75cba8e1 | 18 | uint8_t GetDataFromBuffer(uint8_t * buf, uint16_t 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 | 3:5f5d75cba8e1 | 24 | |
kalbers | 3:5f5d75cba8e1 | 25 | }; |