now I want to transfer some data between PC and the client of mesh,I have read this case and try to add the light switch client example to the uart example.but I don't know how to exchange the codes of main.c.Can you tell me how to do it?
now I want to transfer some data between PC and the client of mesh,I have read this case and try to add the light switch client example to the uart example.but I don't know how to exchange the codes of main.c.Can you tell me how to do it?
You can also take a look at this infocenter link. In the link you provided, there is a zip file with the whole example code. I would suggest to download it & see how the main.c code is implemented.
I've download the zip file and try to do it as you said, and I build it without problem after added the necessary paths. But when I debug the program I get the assert as below:
<t: 30>, main.c, 762, ----- BLE Mesh Light Switch Server Demo -----
<warning> nrf_sdh_ble: RAM starts at 0x20002A68, can be adjusted to 0x20002760.
<warning> nrf_sdh_ble: RAM size can be adjusted to 0xD8A0.
<info> app: UART Start!
<error> app: ERROR 7 [NRF_ERROR_INVALID_PARAM] at F:\mesh tools\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart_Mesh\main.c:773
I don't the reason.
I've download the zip file and try to do it as you said, and I build it without problem after added the necessary paths. But when I debug the program I get the assert as below:
<t: 30>, main.c, 762, ----- BLE Mesh Light Switch Server Demo -----
<warning> nrf_sdh_ble: RAM starts at 0x20002A68, can be adjusted to 0x20002760.
<warning> nrf_sdh_ble: RAM size can be adjusted to 0xD8A0.
<info> app: UART Start!
<error> app: ERROR 7 [NRF_ERROR_INVALID_PARAM] at F:\mesh tools\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart_Mesh\main.c:773
I don't the reason.