I want to interface Client Sensor over UART in light_switch_client code. Can you please give me the idea,how to do it.
I am using Mesh_V4.0 and SDK 16.0
I want to interface Client Sensor over UART in light_switch_client code. Can you please give me the idea,how to do it.
I am using Mesh_V4.0 and SDK 16.0
It suspect that you haven't setup your MESH_ROOT macro correctly. Take a look at step 3) under "Testing the example" and check that the correct path is inserted.
Is this correct ? I have created a folder "nRF_mesh " inside which I have copied my mesh stack
Remove the <> brackets
Hi thanks for the reply.It compiled successfully.
1.Now will you please explain me which part in the code exhibits UART functionality ? Basically I want to send some commands from development kit,for which my sensor will send the response. (PHYSICAL WIRED INTERFACE)
2,Which pins I should use on the development kit to interface my external sensor ? (External sensor has RX,TX,RTS,CTS pins).
Hi,
1. For sending and receiving over UART, have a look at these functions:
app_uart_get(..)
app_uart_put(..)
2. I suggest you have a look at the Product Specification for the nRF52832. P0.05 - P0.08 are connected to the interface MCU. Choose some other GPIO for communicating with the sensor.
Initialize the UART module with uart_init().