Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: Notify any bytes by SimpleProfile Characteristic4

$
0
0

I check the operation in sample program "SimpleBLEPeripheral" of BLE Stack in CC2540 now.
I am going to transmit data of 4byte from Peripheral to Central in Notify.


I changed data definition of Characteristic4 of SimpleGATTProfile which was sample of Notify(1byte) as follows.

but only 1byte transmits a message.

-----

// Characteristic 4 Value
static uint8 simpleProfileChar4 = 0;

static uint8 simpleProfileChar4[4] = { 0x12, 0x34, 0x56, 0x78 };

-----


I confirmed that {0x12, 0x34, 0x56, 0x78} was in SimpleProfileChar4 till GATTServApp_ProcessCharCfg() (in SimpleProfile_SetParamater()) was called.

-----

GATTServApp_ProcessCharCfg( SimpleProfileChar4Config, (uint8 *)SimpleProfileChar4,
   FALSE, simpleProfileAttrTbl, GATT_NUM_ATTRS(simpleProfileAttrTbl), INVALID_TASK_ID);

-----


surely, I do not appoint data length in GATTServApp_ProcessCharCfg().
Will it have to appoint it somewhere?

Thanks.



Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>