Wrapper of the mbed hardware
Dependents: NerfUS_cmake_add_library_from_mbed NerfUS NerfUSGameCoordinator
Diff: include/EthernetInterface.hpp
- Revision:
- 5:0a7810520b9e
- Parent:
- 4:e17cc31660ad
--- a/include/EthernetInterface.hpp Tue Feb 28 21:37:11 2017 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -/** -@file EthernetInterface.hpp - -@brief Allow communication with a server using a specific websocket. - -@poject NerfUS, Team P5 -*/ -class EthernetInterface -{ - /** - * Allow to send a buffer of information to the server - * - * @param buffer The data to send - * @returns the number of bytes sent - */ - virtual int send(char *buffer) = 0; - - /** - * Blocking method to get message back from the server - * - * @param buffer Must be a pointer to the buffer to write the message - * @return true if a websocket frame has been read - */ - virtual bool onMessage(char *buffer) = 0; - - virtual ~EthernetInterface() {} -};