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

SimpleBLEPeripheral协议栈 (蓝牙点灯)

于 2022-12-28 发布 文件大小:10.68 MB
0 121
下载积分: 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 个回复

  • netcalculation
    一个用于复杂网络研究中计算网络静态参数(度分布,簇系数等)的c程序(其中的数据是具体的可换成其他的数据)。很简单但是对于做复杂网络研究的却很有启发的哦。(a complex network for research computing network static parameters (distribution, Clustering coefficient, etc.) c (which is specific data can be replaced by other data). Very simple but so complex network of research is very enlightening oh.)
    2007-01-02 14:46:13下载
    积分:1
  • STM32F0xx_StdPeriph_Lib_V1.5.0
    stm32f0的固件包,超级的实用,不需要再去官网下载了。(Stm32f0 firmware package, super practical)
    2020-06-18 12:20:01下载
    积分:1
  • C# CTS 类型
    基本数据类型,简单介绍了,基于Windows 平台下,.net开发,C#语言的CTS数据类型(Basic data types, simple introduction, based on the Windows platform,.Net development, C# language CTS data types)
    2018-01-19 11:07:42下载
    积分:1
  • 遗传算法求解最短路径
    遗传算法求解车辆路径问题,算法的实施步骤:     第一步:初始化 t←0进化代数计数器;T是最大进化代数;随机生成M个个体作为初始群体P(t);     第二步:个体评价 计算P(t)中各个个体的适应度; 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-03-22 15:04:01下载
    积分:1
  • adPuartPTimer1Peeprom-test
    PIC单片机开发,AD转换+uart控制+Timer1控制+eeprom控制 (develop for pic)
    2014-02-26 20:12:06下载
    积分:1
  • NSGA-2
    说明:  NSGA-2算法的C++实现,包含头文件(C + + implementation of nsga-2 algorithm)
    2019-11-09 10:36:46下载
    积分:1
  • 函数式编程思维.pdf
    说明:  函数式编程目前已跟OO一样,是一种重要的编程范式,可以在一些场合下更容易的解决相关问题。(Functional programming is now the same as OO. It is an important programming paradigm that can solve related problems more easily in some situations.)
    2020-04-19 14:50:19下载
    积分:1
  • 模数转换
    开关电源控制中的模数采样程序,有详细的注释。(Modular sampling procedures in switching power supply control are annotated in detail.)
    2020-06-20 21:40:02下载
    积分:1
  • NET常用公共类库 源码下载(严重赞)
    包含了各个层面的常用类源码,看完你会感谢作者的。。。
    2015-01-26下载
    积分:1
  • tu
    说明:  、实验目的 1 熟练掌握各种内排序方法,深刻理解排序算法及其执行过程; 2 学会分析各种内排序算法的性能; 3 了解各种排序方法的优缺点,对于实际问题能够选择一种较好的排序方案; 4 熟练掌握图的存储结构; 5 掌握图的邻接矩阵和邻接表表示分别进行深度和广度优先搜索遍历的算法。 6 了解图的最小生成树算法。 (Proficiency in the order of search, binary search and index search basic search algorithm, these algorithms are familiar with what kind of storage structure suitable for implementation two master binary sort tree characteristics, building methods, and dynamic search algorithm 3 master hash table of characteristics and construction methods.)
    2009-12-30 21:15:29下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载