iOS CB BLE(蓝牙4.0)极简Demo

上传者: wooer1988 | 上传时间: 2020-01-14 03:14:27 | 文件大小: 83KB | 文件类型: zip
自制极简BLE DEMO,所有连接写在一个类内,可用于收发数据,不过是我们公司的蓝牙模块才行~ 如果要用你的蓝牙模块收发数据,只需要把代码内的write和readCharacteristic的UUID设为你需要读写的UUID即可,也可以改成遍历读取所有数据,代码简洁易懂! 不懂就联系Q514763292

文件下载

资源详情

[{"title":"( 73 个子文件 83KB ) iOS CB BLE(蓝牙4.0)极简Demo","children":[{"title":"MyBleTest2","children":[{"title":"MyBleTest2","children":[{"title":"WWDViewController.m <span style='color:#111;'> 12.66KB </span>","children":null,"spread":false},{"title":"main.m <span style='color:#111;'> 344B </span>","children":null,"spread":false},{"title":"WWDAppDelegate.h <span style='color:#111;'> 284B </span>","children":null,"spread":false},{"title":"MyBleTest2-Prefix.pch <span style='color:#111;'> 344B </span>","children":null,"spread":false},{"title":"WWDAppDelegate.m <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"WWDViewController.h <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"Base.lproj","children":[{"title":"Main.storyboard <span style='color:#111;'> 22.35KB </span>","children":null,"spread":false}],"spread":true},{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"MyBleTest2-Info.plist <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"Images.xcassets","children":[{"title":"AppIcon.appiconset","children":[{"title":"Contents.json <span style='color:#111;'> 333B </span>","children":null,"spread":false}],"spread":true},{"title":"LaunchImage.launchimage","children":[{"title":"Contents.json <span style='color:#111;'> 442B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"en.lproj","children":[{"title":"InfoPlist.strings <span style='color:#111;'> 45B </span>","children":null,"spread":false}],"spread":true}],"spread":false},{"title":"MyBleTest2Tests","children":[{"title":"MyBleTest2Tests-Info.plist <span style='color:#111;'> 688B </span>","children":null,"spread":false},{"title":"MyBleTest2Tests.m <span style='color:#111;'> 646B </span>","children":null,"spread":false},{"title":"en.lproj","children":[{"title":"InfoPlist.strings <span style='color:#111;'> 45B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".git","children":[{"title":"index <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"hooks","children":[{"title":"pre-push.sample <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"prepare-commit-msg.sample <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"applypatch-msg.sample <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"pre-commit.sample <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"pre-applypatch.sample <span style='color:#111;'> 398B </span>","children":null,"spread":false},{"title":"commit-msg.sample <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"pre-rebase.sample <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false},{"title":"update.sample <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false},{"title":"post-update.sample <span style='color:#111;'> 189B </span>","children":null,"spread":false}],"spread":true},{"title":"config <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"description <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"tags","children":null,"spread":false},{"title":"heads","children":[{"title":"master <span style='color:#111;'> 41B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"branches","children":null,"spread":false},{"title":"logs","children":[{"title":"refs","children":[{"title":"heads","children":[{"title":"master <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"HEAD <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true},{"title":"objects","children":[{"title":"6c","children":[{"title":"fc746d4ecf2e3ac67bb0cf6c4013e1aff9b1f1 <span style='color:#111;'> 58B </span>","children":null,"spread":false}],"spread":true},{"title":"a3","children":[{"title":"96706db4ec4cfca4d984d38b90dc8098bded40 <span style='color:#111;'> 147B </span>","children":null,"spread":false}],"spread":true},{"title":"d9","children":[{"title":"6dc638b1e3d2cb9cd4cec72ec4f80e6420dfca <span style='color:#111;'> 854B </span>","children":null,"spread":false}],"spread":true},{"title":"3e","children":[{"title":"ad4962b6857147d0459c58d811b7d555b78d07 <span style='color:#111;'> 130B </span>","children":null,"spread":false}],"spread":false},{"title":"82","children":[{"title":"a2bb45076d290ce7461b28d5a579e649777779 <span style='color:#111;'> 247B </span>","children":null,"spread":false}],"spread":false},{"title":"06","children":[{"title":"11bdc8edf6f4ce2264ed2cff47dc263e289c40 <span style='color:#111;'> 270B </span>","children":null,"spread":false}],"spread":false},{"title":"9f","children":[{"title":"898cf577c91062ab4a4f3b43225f8755122195 <span style='color:#111;'> 366B </span>","children":null,"spread":false}],"spread":false},{"title":"c7","children":[{"title":"9ebd3ada1309bae694b8e6760592b1254e035c <span style='color:#111;'> 187B </span>","children":null,"spread":false}],"spread":false},{"title":"6d","children":[{"title":"e8c23c3ee853c511a3c01892fd1faa754e4880 <span style='color:#111;'> 501B </span>","children":null,"spread":false}],"spread":false},{"title":"info","children":null,"spread":false},{"title":"47","children":[{"title":"7b28ff8f86a3158a71c4934fbd3a2456717d7a <span style='color:#111;'> 61B </span>","children":null,"spread":false}],"spread":false},{"title":"f0","children":[{"title":"8cc17f97af04d43081397910c058ef279097c7 <span style='color:#111;'> 51B </span>","children":null,"spread":false}],"spread":false},{"title":"55","children":[{"title":"47b5bb15d0805085dd1739f1d7c265b4eeaf25 <span style='color:#111;'> 810B </span>","children":null,"spread":false}],"spread":false},{"title":"f3","children":[{"title":"a809549076a9d45e5e27a99c2c92f011b3d81e <span style='color:#111;'> 318B </span>","children":null,"spread":false}],"spread":false},{"title":"bf","children":[{"title":"f3ed2f1a8bdd92809725173555b3e69a3f9888 <span style='color:#111;'> 916B </span>","children":null,"spread":false}],"spread":false},{"title":"b7","children":[{"title":"858377becc42a4f29c24678ae8b789664c9bf9 <span style='color:#111;'> 186B </span>","children":null,"spread":false}],"spread":false},{"title":"pack","children":null,"spread":false},{"title":"6a","children":[{"title":"fecb15f2c394f085d232a6020046d0bf490cbc <span style='color:#111;'> 367B </span>","children":null,"spread":false}],"spread":false},{"title":"8b","children":[{"title":"775d78ce2dabff1b98e9b6ab828473a5bd471e <span style='color:#111;'> 345B </span>","children":null,"spread":false}],"spread":false},{"title":"25","children":[{"title":"60a2b9ab9323ca61a0fdebd3b4af46dbe4c272 <span style='color:#111;'> 100B </span>","children":null,"spread":false}],"spread":false},{"title":"e2","children":[{"title":"67ba0bfdede42466461e0e86837b856a05bfe7 <span style='color:#111;'> 231B </span>","children":null,"spread":false}],"spread":false},{"title":"aa","children":[{"title":"b9b10213ec80c0f87e17fbd66a2cb2fa5abfae <span style='color:#111;'> 115B </span>","children":null,"spread":false}],"spread":false},{"title":"9b","children":[{"title":"a6b1358b21b8bb2d20937f9c64a01772afa41c <span style='color:#111;'> 106B </span>","children":null,"spread":false}],"spread":false},{"title":"62","children":[{"title":"92bd00570380c16548cc5a6f87ca3270a9dabc <span style='color:#111;'> 69B </span>","children":null,"spread":false}],"spread":false},{"title":"c3","children":[{"title":"c84e6ebc953e9b535858a4b340ac8975a5dc3b <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false}],"spread":false},{"title":"52","children":[{"title":"aa194c7ad4132a44d9cbafcba549980efdb4a3 <span style='color:#111;'> 136B </span>","children":null,"spread":false}],"spread":false},{"title":"31","children":[{"title":"38a8f5d1e3dd44d43d6663fcff9d6ada3006e1 <span style='color:#111;'> 182B </span>","children":null,"spread":false}],"spread":false},{"title":"02","children":[{"title":"3bfe6ca677b6c4023b0dc1320c41fb5b47afca <span style='color:#111;'> 134B </span>","children":null,"spread":false},{"title":"37597b848a1890bb30ba0ff4102f8107cafdcb <span style='color:#111;'> 61B </span>","children":null,"spread":false}],"spread":false},{"title":"28","children":[{"title":"5cf1403db704f5e1ef35c1e809a495bae95d14 <span style='color:#111;'> 131B </span>","children":null,"spread":false}],"spread":false},{"title":"e8","children":[{"title":"6941bef7cb5bd70ffcc7f4a6b209c3c7f58710 <span style='color:#111;'> 60B </span>","children":null,"spread":false}],"spread":false},{"title":"6f","children":[{"title":"3b0ab36651ca648408c176f81e4b2e202efa0b <span style='color:#111;'> 58B </span>","children":null,"spread":false}],"spread":false},{"title":"c2","children":[{"title":"199a9bc1ce7455a2d389afc2ffd4ce175fef94 <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false}],"spread":false},{"title":"f5","children":[{"title":"9f2d58babec249667edff34888f9c6799fd6a8 <span style='color:#111;'> 324B </span>","children":null,"spread":false},{"title":"78394bd1d4af4cbdab2b148240d69675b435b0 <span style='color:#111;'> 63B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"info","children":[{"title":"exclude <span style='color:#111;'> 40B </span>","children":null,"spread":false}],"spread":true},{"title":"COMMIT_EDITMSG <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":"HEAD <span style='color:#111;'> 23B </span>","children":null,"spread":false}],"spread":false},{"title":"MyBleTest2.xcodeproj","children":[{"title":"project.xcworkspace","children":[{"title":"contents.xcworkspacedata <span style='color:#111;'> 155B </span>","children":null,"spread":false},{"title":"xcuserdata","children":[{"title":"maginawin.xcuserdatad","children":[{"title":"UserInterfaceState.xcuserstate <span style='color:#111;'> 25.74KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"project.pbxproj <span style='color:#111;'> 19.69KB </span>","children":null,"spread":false},{"title":"xcuserdata","children":[{"title":"maginawin.xcuserdatad","children":[{"title":"xcschemes","children":[{"title":"xcschememanagement.plist <span style='color:#111;'> 572B </span>","children":null,"spread":false},{"title":"MyBleTest2.xcscheme <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false}],"spread":true},{"title":"xcdebugger","children":[{"title":"Breakpoints_v2.xcbkptlist <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 山贼 :
    不错,可以运行
    2019-08-16
  • KONGYU_210 :
    iOS 可以使用
    2018-08-28
  • ljwater :
    谢谢lz分享。
    2018-06-26
  • Lugal :
    iOS 蓝牙的代码可以使用
    2018-04-18
  • pytyj :
    可以使用,不错
    2018-02-22

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明