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
Diff: JroEthernet.h
- Revision:
- 3:f0e6c145b075
- Parent:
- 2:3d8d52e9751c
- Child:
- 4:de495ce256b8
--- a/JroEthernet.h Thu Feb 05 19:01:42 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-#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();
-
-};
