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

nRF9160 DK lte_ble_gateway sample write characteristic

Hi,

I am trying to use the Bluetooth low energy capability of the nRF9160 DK (nRF52840 chip) by using the lte_ble_gateway sample from Nordic. After changing some lines of code, I am able to establish a BLE connection with a smartphone (app acts as BLE server/peripheral) and discover the service and characteristics.
The problem I am facing is the following.
I want to write a value on the discovered characteristic, but the only function I could imagine to be a reference is the "bt_gatt_write(...)".
Could someone please provide me a sample, reference, guide or hint on how to manipulate the discovered characteristics on nRF9160 DK as BLE client?
Untill now it seems to me, that there is no simple template function prepared (like e.g. write_chrc( conn_params, buf, len )).

Best regards.

Parents
  • Hi Håkon,

    thanks for the reference sample, I will try it that way.

    The application shall include a bidirectional wireless communication through two switchable channels - a BLE channel and a NB-IoT channel. Furthermore there should be a communication between modem and BLE module to organize a clean switch between the channels to save energy and avoid data loss.
    In general I would prefer a solution with an additional central processor/controller to manage the whole application including a user interface (buttons and leds), but in order to safe space and lower costs I thought about using the M33 application processor of the nRF9160 as the central controller.

    Best regards.

Reply
  • Hi Håkon,

    thanks for the reference sample, I will try it that way.

    The application shall include a bidirectional wireless communication through two switchable channels - a BLE channel and a NB-IoT channel. Furthermore there should be a communication between modem and BLE module to organize a clean switch between the channels to save energy and avoid data loss.
    In general I would prefer a solution with an additional central processor/controller to manage the whole application including a user interface (buttons and leds), but in order to safe space and lower costs I thought about using the M33 application processor of the nRF9160 as the central controller.

    Best regards.

Children
No Data
Related