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.
Dependencies: WncControllerK64F
Fork of WNCInterface by
Revision 25:78d2aed96783, committed 2016-12-06
- Comitter:
- JMF
- Date:
- Tue Dec 06 22:51:30 2016 +0000
- Parent:
- 24:75dea0de5849
- Commit message:
- update for WncController interface changes.
Changed in this revision
| Socket/TCPSocketConnection.cpp | Show annotated file Show diff for this revision Revisions of this file |
| Socket/UDPSocket.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Socket/TCPSocketConnection.cpp Tue Dec 06 22:38:35 2016 +0000
+++ b/Socket/TCPSocketConnection.cpp Tue Dec 06 22:51:30 2016 +0000
@@ -65,7 +65,7 @@
if( s == WncController_fk::WncController::WNC_ON ) {
M_LOCK;
- if( WNCInterface::_pwnc->write(0, data, length) )
+ if( WNCInterface::_pwnc->write(0, (const std::uint8_t*)data, length) )
ret = length;
M_ULOCK;
}
--- a/Socket/UDPSocket.cpp Tue Dec 06 22:38:35 2016 +0000
+++ b/Socket/UDPSocket.cpp Tue Dec 06 22:51:30 2016 +0000
@@ -53,7 +53,7 @@
CHK_WNCFE(( WNCInterface::_pwnc->getWncStatus() == FATAL_FLAG ), fail);
if( remote._epAddr.port ) { //make sure the Endpoint has an port assoicated with it
if( Socket::connect(remote._epAddr.IP,SOCK_DGRAM,remote._epAddr.port) ) {
- if( WNCInterface::_pwnc->write(0,packet,length) )
+ if( WNCInterface::_pwnc->write(0,(const std::uint8_t*)packet,length) )
ret = length;
close();
}
