This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cannot add function in main.c

Hi, I would like to ask that, whenever I put my function in main.c, the borad become undiscoverable.

I'm using nRF51 with ble_app_uart_s110_pca10028, and below are my function and main

image description image description

Parents
  • Hi 10Hsin.

    You too seriously transmitting data.

  • Hi 10Hsin. In your sample program, it constantly transmitting data between 0 to 9. The most important thing is why? Why you transmitting data 0 to 9 to one-side without any event or case? I mean .. transferring data is communication with your friends. Imagine this situation,

    1. you are designning sensor device(BLE UART) that can communicate with your smartphone(Central).
    2. your smartphone connect to your device and send a command to retrieve sensor value.
    3. your device wait for a command
    4. if your device received a sensing command, then your device write data using ble_nus_stringxxx

    Best regards.

Reply
  • Hi 10Hsin. In your sample program, it constantly transmitting data between 0 to 9. The most important thing is why? Why you transmitting data 0 to 9 to one-side without any event or case? I mean .. transferring data is communication with your friends. Imagine this situation,

    1. you are designning sensor device(BLE UART) that can communicate with your smartphone(Central).
    2. your smartphone connect to your device and send a command to retrieve sensor value.
    3. your device wait for a command
    4. if your device received a sensing command, then your device write data using ble_nus_stringxxx

    Best regards.

Children
No Data
Related