Part Number: CC2642R-Q1
For the BLE pass-through function, the simple_peripheral routine only supports sending a single byte to the device, so I need to receive multiple bytes of data sent by the app, and make the following modifications:
1. In simple_gatt_profile.c,
// Simple Profile Characteristic 3 Properties
static uint8 simpleProfileChar3Props = GATT_PROP_READ | GATT_PROP_WRITE;
// Characteristic 3 Value
static uint8 simpleProfileChar3[20] = {0};
// Simple Profile Characteristic 3 User Description
static uint8 simpleProfileChar3UserDesp[17] = "Characteristic 3";
// Characteristic 3 Declaration
{
{ ATT_BT_UUID_SIZE, characterUUID },
GATT_PERMIT_READ | GATT_PERMIT_WRITE ,
0,
&simpleProfileChar3Props
},
// Characteristic Value 3
{
{ ATT_BT_UUID_SIZE, simpleProfilechar3UUID },
GATT_PERMIT_READ | GATT_PERMIT_WRITE,
0,
// &simpleProfileChar3
simpleProfileChar3
},
// Characteristic 3 User Description
{
{ ATT_BT_UUID_SIZE, charUserDescUUID },
GATT_PERMIT_READ | GATT_PERMIT_WRITE,
0,
simpleProfileChar3UserDesp
},
2. The APP side can send a single byte through attribute 3, but the device side has no response when sending TEXT data. Do you need to modify any configurations? See pictures for details


