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.
Dependents: cc3000_hello_world_demo cc3000_simple_socket_demo cc3000_ntp_demo cc3000_ping_demo ... more
Diff: Socket/Endpoint.cpp
- Revision:
- 9:4d12b82bc767
- Parent:
- 8:4c42ca37ba33
- Child:
- 11:5e3771b29385
diff -r 4c42ca37ba33 -r 4d12b82bc767 Socket/Endpoint.cpp
--- a/Socket/Endpoint.cpp Mon Sep 30 19:29:06 2013 +0000
+++ b/Socket/Endpoint.cpp Tue Oct 01 04:31:56 2013 +0000
@@ -95,11 +95,11 @@
uint32_t address_integer;
_cc3000_module->_socket.get_host_by_name((uint8_t *)host, strlen(host) , &address_integer);
- uint32_t ip = 0;
- ip = (ip | (address_integer >> 24));
- ip = (ip | ((address_integer & 0x00FF0000) >> 8));
- ip = (ip | ((address_integer & 0x0000FF00) << 8));
- ip = (ip | ((address_integer & 0x000000FF) << 24));
+ uint32_t ip = 0;
+ ip = (ip | (address_integer >> 24));
+ ip = (ip | ((address_integer & 0x00FF0000) >> 8));
+ ip = (ip | ((address_integer & 0x0000FF00) << 8));
+ ip = (ip | ((address_integer & 0x000000FF) << 24));
_remote_host.sin_addr.s_addr = ip;
inet_ntoa_r(_remote_host.sin_addr, _ipAddress, sizeof(_ipAddress));
} else {
SimpleLink Wi-Fi CC3000
Avnet Wi-Go System