Multiple Connectivity Framework Keynote

  • View
    490

  • Download
    2

Embed Size (px)

DESCRIPTION

Multiple Connectivity Framework Keynote

Text of Multiple Connectivity Framework Keynote

  • Multipeer Connectivity Framework allenlinli 2014.4.10
  • FireChat
  • FireChat
  • https://dl.dropboxusercontent.com/u/2857188/ MCDemo.zip
  • Wireless mesh networking Peer-to-peer connections: infrastructure Wi-Fi networks peer-to-peer Wi-Fi Bluetooth personal area networks
  • Pros & Cons Pros Without an internet connection Location-based communication (nearby) Cons Sessions currently support up to 8 peers Data transfer is slow especially on Bluetooth Can not cross networks in single connection Not support background mode
  • Sending & Receiving Information Messages: Text or small serialised objects (NSData) Streams: Audio, video, or real-time sensor events Resources: Images, movies, or documents.
  • Build up Connection
  • Steps PeerID Session Advertise Browser Accept
  • _peerID = [[MCPeerID alloc] initWithDisplayName:displayName]; _session = [[MCSession alloc] initWithPeer:_peerID]; _session.delegate = self;
  • _advertiser = [[MCAdvertiserAssistant alloc] initWithServiceType:@"chat-files" discoveryInfo:nil session:_session]; [_advertiser start]; _browser = [[MCBrowserViewController alloc] initWithServiceType:@"chat-files" session:_session];
  • Data Transfer
  • [_appDelegate.mcManager.session sendData:dataToSend toPeers:allPeers withMode:MCSessionSendDataReliable error:&error];
  • Bluetooth Bluetooth (Bonjour over Bluetooth) Multipeer Connectivity BLE/Bluetooth 4.0 advertisement Bluetooth Classic WiFi Multipeer Connectivity WiFi Direct 250 Mbps 35-50 Mbps AirDrop Adhoc WiFi 11 Mbps Mac AirDrop 18 Mbps ( Wi 4 Mbps)
  • Resources
  • Tutorials http://www.appcoda.com/intro-multipeer- connectivity-framework-ios-programming/ http://code.tutsplus.com/tutorials/exploring-the- multipeer-connectivity-framework-project-setup-- mobile-23071 http://nshipster.com/multipeer-connectivity/