title: Connection between devices via blue tooth iOS
body: <p>I am working on an <code>iOS Application</code> in which I want to list the bluetooth devices names and connect to any one of them and transfer data (messages). </p>
  
  <p>Now I am using the <code>MultiPeerConnectivityFramework</code> which uses MCBrowserViewController for discovering nearby devices, but unfortunately i am not getting any device name in the MCBrowserViewController. Here is my code</p>
  
  <pre><code>-(void)setupPeerAndSessionWithDisplayName:(NSString *)_displayName{
  
  self.peerID = [[MCPeerID alloc] initWithDisplayName:_displayName];
  self.session = [[MCSession alloc] initWithPeer:self.peerID];
  self.session.delegate = self;
  </code></pre>
  
  <p>}</p>
  
  <p>-(void)setupMCBrowser{</p>
  
  <pre><code>self.browser = [[MCBrowserViewController alloc] initWithServiceType:@"chat-files" session:self.session];
  </code></pre>
  
  <p>}</p>