Ethernet+BLE prototype

Dependencies:   mbed EthernetInterface mbed-rtos

Committer:
teruo
Date:
Fri Mar 28 01:10:32 2014 +0000
Revision:
4:78e96198c879
Parent:
3:d9445b9e7163
Child:
5:9fffeb949e5a
??????????????
; Serial.attach & callback ?????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
teruo 3:d9445b9e7163 1 #ifndef __HTTPSEND_H__
teruo 3:d9445b9e7163 2 #define __HTTPSEND_H__
teruo 3:d9445b9e7163 3
teruo 3:d9445b9e7163 4 #include <stddef.h>
teruo 4:78e96198c879 5 #include "EthernetInterface.h"
teruo 3:d9445b9e7163 6
teruo 4:78e96198c879 7 #define SENDBUFFER_SIZE 128
teruo 3:d9445b9e7163 8 typedef struct {
teruo 3:d9445b9e7163 9 char data[SENDBUFFER_SIZE];
teruo 3:d9445b9e7163 10 size_t size;
teruo 3:d9445b9e7163 11 } message_t;
teruo 3:d9445b9e7163 12
teruo 3:d9445b9e7163 13
teruo 3:d9445b9e7163 14 class HttpSend {
teruo 3:d9445b9e7163 15
teruo 3:d9445b9e7163 16 public:
teruo 4:78e96198c879 17 void init(EthernetInterface* eth);
teruo 3:d9445b9e7163 18 void send(message_t* message);
teruo 3:d9445b9e7163 19 message_t* getMessageBuffer();
teruo 3:d9445b9e7163 20 };
teruo 3:d9445b9e7163 21
teruo 3:d9445b9e7163 22 #endif /* __HTTPSEND_H__ */