Ethernet+BLE prototype

Dependencies:   mbed EthernetInterface mbed-rtos

Committer:
teruo
Date:
Mon Mar 31 03:25:14 2014 +0000
Revision:
5:9fffeb949e5a
Parent:
4:78e96198c879
Serial.attach????

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 5:9fffeb949e5a 8
teruo 3:d9445b9e7163 9 typedef struct {
teruo 5:9fffeb949e5a 10 bool used;
teruo 3:d9445b9e7163 11 char data[SENDBUFFER_SIZE];
teruo 3:d9445b9e7163 12 size_t size;
teruo 3:d9445b9e7163 13 } message_t;
teruo 3:d9445b9e7163 14
teruo 3:d9445b9e7163 15
teruo 3:d9445b9e7163 16 class HttpSend {
teruo 3:d9445b9e7163 17
teruo 3:d9445b9e7163 18 public:
teruo 4:78e96198c879 19 void init(EthernetInterface* eth);
teruo 3:d9445b9e7163 20 void send(message_t* message);
teruo 3:d9445b9e7163 21 message_t* getMessageBuffer();
teruo 3:d9445b9e7163 22 };
teruo 3:d9445b9e7163 23
teruo 3:d9445b9e7163 24 #endif /* __HTTPSEND_H__ */