登录
首页 » c » SimpleBLEPeripheral协议栈 (蓝牙点灯)

SimpleBLEPeripheral协议栈 (蓝牙点灯)

于 2022-12-28 发布 文件大小:10.68 MB
0 136
下载积分: 2 下载次数: 1

代码说明:

1.添加特征值 我们添加一个1Byte的特征值来控制灯的亮灭 因为simpleGATTProfile是共用的文件,为了不影响其它工程,我们使用一个宏来控制新增加的属性 #if SIMPLEPROFILE_LED #endif (1)修改simpleGATTProfile.h    (2)添加UUID //Characteristic 6 UUID:0xFFF6 (3)添加属性 // Simple Profile Characteristic 6 Properties // Characteristic 6 Value // Simple Profile Characteristic 6 User Description (4)属性表 // Characteristic 6 Declaration // Characteristic Value 6 // Characteristic 6 User Description (5)属性设置操作 SimpleProfile_SetParameter (6)属性获取操作 Get a Simple Profile parameter (7)属性读操作 simpleProfile_ReadAttrCB (8)属性写操作 simpleProfile_WriteAttrCB 2.Profile的改造完成后,我们将这个宏打开,配置工程。 3.接着我们在staticvoid simpleProfileChangeCB( uint8 paramID )函数的switch中加入CHAR6的判断即可

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • testOnline
    C#开发的毕业设计在线考试系统源码. 1,本考试系统为某大学毕业生论文 2,测试帐号:学生ID:012003021314,PWD:123(由于只有英语题库有题目,如果已经考试过可以换个ID或者删除成绩) 教师ID:zy PWD:123 管理员ID:admin PWD:51aspx 3,目前题库内只有英语科目有试题。 (C# development of graduate design online examination system source code. 1, the examination system for a university graduate thesis 2, test accounts: Student ID: 012003021314, PWD: 123 (since only English item bank are subject that I can test if you have a change ID, or Remove results) Teacher ID: zy PWD: 123 Administrator ID: admin PWD: 51aspx 3, the current item bank, only the subjects of examination questions in English.)
    2010-01-29 17:01:53下载
    积分:1
  • Software-Testing
    随着计算机技术的迅速发展和越来越广泛深入地应用于国民经济和社会生活的各个方面,随着 软件系统的规模和复杂性与日俱增,软件的生产成本和软件中存在的缺陷和故障造成的各类损失也 大大增加,甚至会带来灾难性的后果。软件质量问题已成为所有使用软件和开发软件的人关注的焦 点。由于软件是人脑的高度智力化的体现和产品这一特殊性,不同于其他科技和生产领域,因此软件与生俱来就有可能存在着缺陷。(With the rapid development of computer technology and the more extensively used in the national economy and social life in all its aspects, with the growing size and complexity of software systems, software production costs and software defects and faults caused various types of losses also increased significantly, even catastrophic consequences. Software quality has become the focus of all those who use the software and software development concern. Because the software is highly intellectual expression and product of the special nature of the human brain, unlike other areas of technology and production, so the software may be born with a defect exists.)
    2013-12-04 22:25:34下载
    积分:1
  • C8
    说明:  进程调度C语言课程设计必备参考,进程调度C语言课程设计必备参考(The process of scheduling C language curriculum design, an essential reference, the process of scheduling an essential reference to C language curriculum design)
    2009-09-08 11:41:54下载
    积分:1
  • romfs_src
    说明:  基于C语言的ROMFS,源码项目可稳定运行,附详细说明文档。(ROMFS based on C language, the source code project can run steadily, with detailed documentation.)
    2019-10-11 13:04:16下载
    积分:1
  • FeatureEdit
    ArcEngine下编辑要素的功能实现..(ArcEngine realization of the function to edit the elements of)
    2010-11-07 16:00:21下载
    积分:1
  • CALL
    matlab transformed to C++. Eigenvalue
    2013-04-04 12:44:19下载
    积分:1
  • 天气 F1
    可以联网显示天气,包括明天后天的天气,还有时间显示,地区显示。(Real-time display of water temperature, flow, but also according to the proportion of water charges. With locking function)
    2020-06-23 01:20:02下载
    积分:1
  • ADS1015
    ADS1015四路ADC采集驱动程序,使用I2C通信(ADS1015 four-channel ADC acquisition driver, using I2C communication)
    2020-06-17 22:00:01下载
    积分:1
  • 数据的加减乘除-重载方法
    用重载方法实现数据的加减乘除以及输出,包括异常报错,实用visual studio 2008 软件
    2022-03-24 06:40:11下载
    积分:1
  • 0629
    焊接模拟,fluent,电弧udf,钨极氩弧焊,源项(Welding simulation, fluent, arc udf, TIG welding, the source term)
    2021-03-28 10:29:12下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载