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

Hi , is there any example code to send the data directly from nrf5_SDK through BLE to app..??

can anyone please say..??

Parents
  • these are the errors am getting , eventhough i have did the typecasting and all , but it throws the same thing.

    Compiling file: main.c ../../../main.c: In function 'main': ../../../main.c:649:48: error: pointer targets in passing argument 2 of 'ble_nus_string_send' differ in signedness [-Werror=pointer-sign] err_code = ble_nus_string_send(&m_nus, PrintBuffer, length); ^~~~~~~~~~~ In file included from ../../../main.c:35:0: ../../../../../../components/ble/ble_services/ble_nus/ble_nus.h:118:10: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'char *' uint32_t ble_nus_string_send(ble_nus_t * p_nus, uint8_t * p_string, uint16_t length); ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors ../../../../../../components/toolchain/gcc/Makefile.common:134: recipe for target '_build/nrf52832_xxaa_main.c.o' failed make: *** [_build/nrf52832_xxaa_main.c.o] Error 1

Reply
  • these are the errors am getting , eventhough i have did the typecasting and all , but it throws the same thing.

    Compiling file: main.c ../../../main.c: In function 'main': ../../../main.c:649:48: error: pointer targets in passing argument 2 of 'ble_nus_string_send' differ in signedness [-Werror=pointer-sign] err_code = ble_nus_string_send(&m_nus, PrintBuffer, length); ^~~~~~~~~~~ In file included from ../../../main.c:35:0: ../../../../../../components/ble/ble_services/ble_nus/ble_nus.h:118:10: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'char *' uint32_t ble_nus_string_send(ble_nus_t * p_nus, uint8_t * p_string, uint16_t length); ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors ../../../../../../components/toolchain/gcc/Makefile.common:134: recipe for target '_build/nrf52832_xxaa_main.c.o' failed make: *** [_build/nrf52832_xxaa_main.c.o] Error 1

Children
No Data
Related