Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
SToR
1. Download, compile and run ST WiFi example: https://os.mbed.com/teams/ST/code/mbed-os-example-wifi/ 2. Observe result.
Expected
Example will work as required.
Actual
Example fails with error -3016.
Logs
Root cause
IPv4 address parsing in features/netsocket/SocketAddress.cpp ( ipv4_from_address() method ) is based on C99 sscanf modifier %hhu It is only present if newlib is compiled with _WANT_IO_C99_FORMATS switch. In case if it is missing, parsing is aborted and default IP (0.0.0.0) is used.
Proposed fix
Environment