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
Dependents: WNCProximityMqtt Pubnub_ATT_IoT_SK_WNC_sync BluemixDemo BluemixQS ... more
See the WNCInterface README in the Wiki tab for detailed information on this library.
Diff: Socket/UDPSocket.cpp
- Revision:
- 25:52bad4105cac
- Parent:
- 24:78d2aed96783
--- a/Socket/UDPSocket.cpp Tue Dec 06 22:51:30 2016 +0000 +++ b/Socket/UDPSocket.cpp Thu Mar 09 01:00:12 2017 +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,(const std::uint8_t*)packet,length) ) + if( WNCInterface::_pwnc->write(0,(const uint8_t*)packet,length) ) ret = length; close(); }