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

SimpleBLEPeripheral协议栈 (蓝牙点灯)

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

  • ceing
    一个直接写屏的模拟电影字幕的效果的测试程序,可以给你的程序带来很漂亮的效果1(A direct write screen simulation film subtitle effect test program, can give your program to bring a very beautiful effect 1)
    2018-09-30 06:21:39下载
    积分:1
  • matlab-a-VC
    Vc+_+调用matlab的一个实例,包括matlab源文件,VC源文件,以及word和pdf文件说明(Vc+_+ call matlab one instance, including the matlab source file, VC source files, as well as word and pdf file description)
    2013-07-13 16:10:42下载
    积分:1
  • gsdgdsxfyrehj
    推箱子~(Tuixiangzi ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ )
    2007-05-11 11:26:44下载
    积分:1
  • ATR-Trailer趋势突破EA 没马丁 没网格
    说明:  外汇MT4 EA,基于ATR指标,亲测可用(Foreign exchange MT4 EA, based on ATR index, available for pro test)
    2020-06-30 20:40:02下载
    积分:1
  • 空气源净化装置
    已经现场实际稳定运行。大型国企。运行稳定。空气源净化电控程序。另外,资源描述要求字数不合理。描述清楚为目的。详细只是手段。意思表达清楚了就可以。和代码实现是一回事儿。
    2022-05-27 08:15:53下载
    积分:1
  • xiaobotuxiangquzao
    小波图像去噪的matlab程序,实现多种阀值之间的比较(Wavelet image denoising Matlab program, a variety of threshold comparison between)
    2012-04-14 22:05:16下载
    积分:1
  • PR
    说明:  输出两路数模转换的信号,用于合成QAM星座图(Two large ones analog converter output signals, for synthesizing QAM constellation)
    2014-11-23 20:35:54下载
    积分:1
  • 本代码实现MSP430单片机与温度传感器ds18b20之间的通信
    说明:  本代码实现MSP430单片机与温度传感器ds18b20之间的通信,,打开时找dm430-l的eww文件就可以,单片机每隔3秒向上位机传输一次数据,传输数据格式为16进制,(16进制转换为10进制后除以10,就是当前的环境温度),数据输出从单片机的串口0引出。(This code realizes the communication between MSP430 MCU and temperature sensor ds18b20. When you open it, you can find the EW file of dm430-l. The MCU transmits data to the host computer every 3 seconds. The format of data transmission is 16-ary (after conversion from 16-ary to 10-decimal, it is the current environment temperature). The data output is drawn from the serial port 0 of the MCU.)
    2019-01-11 18:36:54下载
    积分:1
  • 数据库入门经典范例(全)希望大家喜欢^_^
    数据库入门经典范例(全)希望大家喜欢^_^-Classic example of database entry (all) I hope everyone likes ^ _ ^
    2022-08-07 00:06:35下载
    积分:1
  • objTester
    一個簡單讀取obj 及 mtl 小程式 可以讀出obj有多少mtl類別 多少點線面(a simple program loading obj and mtl. it can read how many points, lines, and planes.)
    2009-06-01 16:08:13下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载