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

Update code from Android

Hello,

I could not find any related info, so I would like to ask few questions:

  1. I have pca10028 board, using s110, sdk 6, ble_app_uart code. The board gets connected to Android mobile device using NRF_UART or NRF_TOOLKIT application. There I receive messages from the board. Can I send strings from Anroid device to the board which would change parameters of my board sleep length, advertisiment length? At the moment I am using RTC1 compare events to define the length of my advertisement and sleep which useses these defines:

    #define COMPARE_COUNTERTIME (6UL) /**< Get Compare event COMPARE_TIME seconds after the counter starts from 0. */ #define COMPARE_SHUTDOWN_COUNTERTIME (COMPARE_COUNTERTIME + (6UL) )

or should I declare them as variables to be able to change them?

  1. Is it possibile to know how many bytes were received from board by the phone and this information to be sent back to the board?

Thank you in advance.

Related