Ah.. that would be a local DNS issue.
There are three ways to handle human-readable names within a local network, two of which can work with the CC3000:
1) Multicast DNS: When a client machine is asked to find the IP address for a human-readable name ending in .local, it emits a broadcast UDP packet that basically says, "who's using this name?" The machine whose name matches the packet sends an, "oh, that's me" packet, and the client can cache that for future reference.
That won't work with the CC3000 unless you do a lot of extra programming.
2) Local nameserver: Put a regular DNS server into the network and feed it a config file that maps human-readable names to IP addresses. This will work with the CC3000, but you need to make sure it gets the same IP address every time.
3) Client-side name table: The original. Unix-based operating systems have a file called /etc/hosts that contains a table of machine names and IP addresses. It's how the internet worked until there were more than a few hundred machines connected to it. This will also work with the CC3000, but again, you need to make sure the CC3000 gets the same IP address every time.
There are two ways to make sure the CC3000 gets a uniform address:
1) MAC-based assignment in the DHCP host: DHCP packets contain the CC3000's physical (MAC) address, which doesn't change. Most DHCP hosts give you the option to remember specific MAC addresses and assign them the same IP address (or an address in a specific range) every time. You'd need to dig through your wireless router's settings to see what the interface looks like.
2) Static IP assignment: Use the .setStaticIP() method to configure the CC3000's IP address from the code. Then all you'd need to do is make sure the DHCP server doesn't accidentally assign some other machine the same address. Again, you can probably find a way to do that in your wifi router's config interface, or you can play the odds and give the CC3000 an address far outside the range it normally uses.
CC3000 inactivity timeout?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Please be positive and constructive with your questions and comments.