mirror of
https://github.com/cwyark/sdk-ameba-v4.0b_without_nda_gcc.git
synced 2024-11-22 14:04:21 +00:00
17 lines
513 B
Text
17 lines
513 B
Text
|
LWIP SOCKET NONBLOCKING CONNECT EXAMPLE
|
||
|
|
||
|
Description:
|
||
|
TCP nonblocking connect with use of select() for connection timeout handling.
|
||
|
|
||
|
Configuration:
|
||
|
Modify SERVER_IP and SERVER_PORT in example_nonblock_connect.c for server connection
|
||
|
|
||
|
[platform_opts.h]
|
||
|
#define CONFIG_EXAMPLE_NONBLOCK_CONNECT 1
|
||
|
[lwipopts.h]
|
||
|
#define ERRNO
|
||
|
|
||
|
Execution:
|
||
|
Can make automatical Wi-Fi connection when booting by using wlan fast connect example.
|
||
|
A socket nonblocking connect example thread will be started automatically when booting.
|