Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of jro by
JroEthernet.h
- Committer:
- miguelcordero191
- Date:
- 2015-02-05
- Revision:
- 2:3d8d52e9751c
File content as of revision 2:3d8d52e9751c:
#include "mbed.h"
#include "rtos.h"
#include "EthernetInterface.h"
#include "SerialDriver.h"
#define DEVICE_NAME "DDSv2"
class JroEthernet{
private:
EthernetInterface *eth;
TCPSocketServer *server;
TCPSocketConnection *client;
unsigned char* rx_buffer;
//SerialDriver *screen;
public:
JroEthernet(EthernetInterface *eth_);
int init(char *ip, char *mask, char *gateway);
int changeIp(char *ip, char *mask, char *gateway);
int openTCPServer(TCPSocketServer *server, int server_port);
int read(char* rx_buffer);
int sendResponse(char *tx_buffer, int buffer_size);
int closeClient();
};
