This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to read the (write) data sent by the "on_write()" interrupt from Centoral

OS in development environment :Windows10
HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals
CPU :(Nordic) nRF52832 / ARMR Cortex-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD
builder :SEGGER Embedded Studio for ARM Release 3.34a Build 2018022300.35192 Windows x64
Copyright 2014-2018 SEGGER Microcontroller GmbH & Co. KG
Copyright 1997-2018 Rowley Associates Ltd.
GCC/BINUTILS: Built using the GNU ARM Embedded Toolchain version 6-2017-q2-update source distribution
Clang/LLVM: Built using the version 5.0.0 source distribution
Soft Ver:nRF5_SDK_15.3.0_59ac345

How do I read the (write) data sent by the "on_write" interrupt from Centoral?
If you have a sample program Please.

The program I created is described below. Please point out any mistakes.
-------------------------------------
if (p_evt_write->handle == p_cus->cus_value_sts_handles.value_handle)
{
cus_Sts.len = p_evt_write ->len;
memcpy(cus_Sts.dat, p_evt_write ->data, cus_Sts.len);
}
-------------------------------------
It seems that you misunderstand the description method, but I'm not sure, so please point it out.
Also, please let me know if there are any parameters to enable in the initial settings.
Thank you

Parents Reply Children
No Data
Related