detecting a wifi device nearby

Discussion in 'iOS Programming' started by arnieterm, Dec 17, 2009.

  1. arnieterm macrumors regular

    Joined:
    Aug 28, 2008
    #1
    Hi all
    As from the topic label stated above, I need to communicate with a wifi node nearby using iphone application. I have given a try to GameKit but it only allows for iphone and ipod touch but not other wifi devices. How can i list all nodes present in my iphone's local wifi network? I have read about BonjourWeb sample from apple but not used yet. Does it do the same thing? Or is there any other way to do this?
    Thanks
    Arnieterm
     
  2. arnieterm thread starter macrumors regular

    Joined:
    Aug 28, 2008
    #2
    As the wifi device is an embedded linux device that is acting as a server. It sends data in json format. Is it okay to use NSStream class to communicate with this device. it contains a service that accepts json request and sends json response.
    Any idea?
    Thanks
    Arnieterm
     
  3. AndyCodez macrumors regular

    Joined:
    Aug 6, 2009
    #3
    This is kind of what I am working on atm, look up the sample applications on the apple site. Even the mac os examples would be a great example. I can't remember the names off the top of my head but i think they are like pictureshare and picturesharebrowser. One app creates the service and the other lists the available services. Using nsnetservice and nsnetservicebrowser. I have that working in my test app but getting other information is being a bit elusive.

    I'm looking for FTP bonjour services running IE. Mac Computers, which I get a proper list, but I have not figured out yet how to get the FTP Addresses. I have a fealing it has to do with the addresses property (lol) but I have not had a chance to mess around with it lately.

    Does anyone have a link to a good guide on communicating with computer FTP sites?
     
  4. arnieterm thread starter macrumors regular

    Joined:
    Aug 28, 2008
    #4
    Sometime ago I have seen SimpleFTPSample but not sure where. You can google this sample. It may be helpful to you
     
  5. arnieterm thread starter macrumors regular

    Joined:
    Aug 28, 2008
    #5
    Hi AndyCodez,
    Are you be able to communicate with embedded linux device using your iphone application? Are you using NSStream class or what other means by which you are communicating on the local wifi network?
    Any idea will be greatly helpful
    Thanks in advance
    Arnieterm
     

Share This Page