Extending the X_NUCLEO_IDW01M1 to allow configuration of the board as an access point
Dependents: X_NUCLEO_IDW01M1_AP_Test
Fork of X_NUCLEO_IDW01M1 by
Diff: SPWFInterface.cpp
- Revision:
- 22:a1276b7d3b2d
- Parent:
- 19:9ab60b80872e
diff -r 9de5d3ab3615 -r a1276b7d3b2d SPWFInterface.cpp --- a/SPWFInterface.cpp Wed Jun 22 15:13:24 2016 +0000 +++ b/SPWFInterface.cpp Thu Jul 07 13:54:06 2016 +0000 @@ -88,7 +88,8 @@ int SpwfSAInterface::init(void) { _spwf.setTimeout(SPWF_MISC_TIMEOUT); - return (_spwf.init()); + int result = _spwf.init(); + return result; } /** @@ -155,7 +156,6 @@ pass_phrase = NULL; } } - return (_spwf.start_access_point((char*)ap, (char*)pass_phrase, mode, channel_num, data_rates)); } @@ -326,7 +326,6 @@ const char *proto = (socket->proto == NSAPI_UDP) ? "u" : "t"; err = _spwf.socket_server_open((uint32_t)socket->server_port, (uint8_t *)proto); - if(err==0) { socket->id = SERVER_SOCKET_NO;//Special socket ID number for Server Socket