C027 Interface
Fork of C027Interface by
Diff: C027Interface.h
- Revision:
- 16:4015243c506d
- Parent:
- 15:21d4f56eb172
diff -r 21d4f56eb172 -r 4015243c506d C027Interface.h --- a/C027Interface.h Tue Apr 26 20:34:29 2016 +0000 +++ b/C027Interface.h Tue Oct 04 20:23:22 2016 +0000 @@ -156,6 +156,15 @@ */ virtual void socket_attach(void *handle, void (*callback)(void *), void *data); + /** Provide access to the NetworkStack object + * + * @return The underlying NetworkStack object + */ + virtual NetworkStack *get_stack() + { + return this; + } + private: // Modem object bool _debug; @@ -163,6 +172,9 @@ SocketAddress _ip_address; char _mac_address[NSAPI_MAC_SIZE]; char _pin[sizeof "1234"]; + Thread _thread; + void (*_callback)(void *); void *_data; + void _run(); }; #endif