title: iOS adhoc wifi sensor data
body: <p>My iPhone connects over adhoc wifi to a wifi sensor module.</p>
  
  <p>The challenge is to code an app that uses this sensor module.  But I'm not sure what specific API's to use to best architect this implementation.</p>
  
  <p>I've started looking into the <a href="http://code.google.com/p/cocoaasyncsocket/" rel="nofollow">CocoaAsyncSocket class</a> as it seems to be an appropriate tool for such use.</p>
  
  <p>Does the user always have to manually connect to the adhoc wifi device?  (through the Settings app)  or can my own app handle the searching, making, and breaking of the wifi connection?</p>
  
  <p>I doubt iOS lets me programmatically toggle whether Wifi is on/off.</p>
  
  <p>Once the sensor data is being received, what container would best handle the stream?
  For example, on other platforms, I coded a rotating queue buffer.</p>
  
  <p>Thanks for your input.</p>
  
  <p><strong>Edit:</strong>  The protocol in question is straight CSV formatted ASCII.  Not HTTP, FTP, etc.  Just raw data.  The app is to simply open a port on the connected IP, and read/write.</p>