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

SimpleBLEPeripheral协议栈 (蓝牙点灯)

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

  • Registry
    修改操作系统注册表,包括实例简介,创建过程,运行效果等等。(Modify the operating system registry, including examples of profiles, the creation process, run the effect and so on.)
    2008-03-31 20:59:54下载
    积分:1
  • 另一实用的UART串口调试程序,你可以随便选择一个使用
    另一实用的UART串口调试程序,你可以随便选择一个使用-UART serial debugger, you can choose any one use
    2023-08-01 22:45:02下载
    积分:1
  • 松翰C语言(项目)例程
    本例程是某电机速度可调定时器产品,现提供网友参考,转载时请明确注明转载处。 功 能: 定时器输出,有三个按键,三位LED显示,00-40分钟选择定时,输出有1-4档强度。(Function: Timer output, three keys, three LED display, 00-40 minutes to select timing, output 1-4 gear strength.)
    2018-11-23 10:00:03下载
    积分:1
  • pipe communication
    说明:  利用管道通信的一个demo,c++管道实现利用了命名管道的方法(Using a demo, C + + pipeline for pipeline communication, the method of named pipeline is used)
    2020-06-21 12:40:01下载
    积分:1
  • 区块链openchain
    区块链openchain示例,C#开发,希望那个对大家有帮助。想致力与区块链开发的朋友可以多交流
    2022-07-07 08:21:55下载
    积分:1
  • gwbssrari
    这里给出的源代码huffman.zip用8种不同的方式实现了Huffman编码算法。这些代码意在演示不同Huffman算法的实现原理,比较算法执行效率的差别,但并没有针对实际应用环境的需求,做更多的空空空间或效率优化。全部代码以C++语言开发,为了更容易地实现各种数据结构,代码中大量应用了标准C++库与模板技术。——总之,这些代码的作用在于示例与演示;如果大家想把这些代码应用在实际应用中,可能还需要 (The given here source code huffman.zip eight different ways to achieve the Huffman coding algorithm. These codes are intended to demonstrate different Huffman algorithm implementation principle, the difference of the algorithm execution efficiency, but does not demand for practical application environment, do more empty space or efficiency optimization. The entire code C++ language development code in order to make it easier to achieve a variety of data structures, a large number of applications the standard C++ library template.- In short, these code examples and demonstration If we want the code used in practical applications may also need)
    2012-08-23 20:05:50下载
    积分:1
  • stl
    stl Implementation source file
    2010-11-23 20:22:13下载
    积分:1
  • paint2
    画图程序,可以话直线,矩形,圆,椭圆和多边形(Paint program, you can, then straight, rectangular, round, oval and polygon)
    2008-08-12 16:16:47下载
    积分:1
  • alns_framework-master
    说明:  自适应大邻域搜索算法中,利用了ALNS的lib库求解了一个TSP问题(In the adaptive large neighborhood search algorithm, the Lib Library of ALNS is used to solve a TSP problem.)
    2019-07-09 18:57:47下载
    积分:1
  • B/s结构,采用 asp.net(C#)+ MS SQL 编写 OA_at
    B/s结构,采用 asp.net(C#)+ MS SQL 编写。严格按照三层结构,不失为学习 C#的好例子。安泰OA办公系统自动化系统(B/s structure and Asp. Net (C#) MS SQL prepared. In strict accordance with the three-tier structure is, after all, learn C# a good example. Aetna OA office automation system)
    2020-06-26 08:20:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载