Setup:
2 Devices CC2640 5XD
The central devices do not have LCD
Without any changes with kye at the central I have perfect:
Advertisement, Scanning, Discovery Results, and stable CONNECT.
Also I have perfect result when I am Pressing KEY_UP after the connection established: reading and writing from the peripheral.
This is wery good.
From the Simple Central I can read and write data to and from the Simple Peripheral.
I want to make simpleProfileChar1 2 bytes.
I change :
SIMPLEPROFILE_CHAR1_LEN 2
I modified I believe everywhere everything regarding simpleProfileChar1 to be the same as simpleProfileChar5
at Peripheral and Central.
When I run the setup I have perfect:
Advertisement, Scanning, Discovery Results, and stable CONNECT.
I placed passive breakpoint at:
"Read rsp:" at Central
I am not doing "Do Write".
I am doing only "Do Read" with a Key.
I am reading a few times simpleProfileChar1, which success I am monitoring with LED blinked at "Read rsp:" at Central.
NOW:
I am activating the breakpoint.
I am reading with the KEY from the peripheral.
pMsg->msg.readRsp.pValue[0] = "9" which is my first byte.
PROBLEM
pMsg->msg.readRsp.len = 1
I am expecting len to be "2".
I read also: pMsg->msg.readRsp.pValue[1] but there is not my second byte.
I believe I am missing somewhere 1 modification.
Can you help please?
Milen