diff options
| author | Daniel Campora | 2015-04-12 23:55:34 +0200 |
|---|---|---|
| committer | Daniel Campora | 2015-04-13 00:02:56 +0200 |
| commit | c69b4310c85b7f09789f75b49e706fea58e8aa7a (patch) | |
| tree | 7680324c6d6d440b369778c132e5ece1108e1c8b /cc3200/telnet | |
| parent | b21786947fabbdef76824d899263bec51779738b (diff) | |
cc3200: Add WLAN.config_ip().
This new method allows to assign an static IP to the device.
Diffstat (limited to 'cc3200/telnet')
| -rw-r--r-- | cc3200/telnet/telnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc3200/telnet/telnet.c b/cc3200/telnet/telnet.c index 5d038866f..fd9180544 100644 --- a/cc3200/telnet/telnet.c +++ b/cc3200/telnet/telnet.c @@ -325,7 +325,7 @@ static bool telnet_create_socket (void) { // Bind the socket to a port number sServerAddress.sin_family = AF_INET; - sServerAddress.sin_addr.s_addr = htonl(INADDR_ANY); + sServerAddress.sin_addr.s_addr = INADDR_ANY; sServerAddress.sin_port = htons(TELNET_PORT); ASSERT (sl_Bind(telnet_data.sd, (const SlSockAddr_t *)&sServerAddress, sizeof(sServerAddress)) == SL_SOC_OK); |
