DA14580

Adding a custom service/characteristic database in ble_app_peripheral

Wed, 2017-03-01 07:07--dhrishi

Hi,

I want to add a custom service, not present in the sdk, (Light Bulb - 128 bit) and its single characteristic (ON - 128 bit) in the ble_app_peripheral example.
I have removed the existing service/characteristic present in the app.
If I am not wrong, I need to add an entry in user_prf_funcs[] and then write two functions:
void app_lb_db_create(void)
void app_lb_db_enable(uint16_t)

Also, I need to add those under which task_id? TASK_CUSTS1 or anything else?

how to transmit the fixed data from device to host in the SPS example?

Tue, 2017-02-28 09:40--RatheeshT

Hi Dialog
I am using DA14580 Pro kit. I am running the sps example with the version DA1458x_DSPS_v_5.150.2. I need to transfer some fixed data continuously from device to host.
Where i need to modify?

I have modified my code like tis
void user_ble_pull (bool init, bool success)
{
bool send_flow_on = false;
static bool tx_busy_flag = false;
static uint8_t rounds_waiting=0;
static uint16_t length;

Watchdog timeout after disconnection

Mon, 2017-02-27 14:32--Fernando Effting

Every time when the peripheral issues the message "GAPC_DISCONNECT_CMD", my application disconnects from the central, but also crashes due to a watchdog timeout.
The disconnect message is issued after 10 (using timer) seconds of inactivity (no data sent nor received, to and from client). If I disable the wdt the application does not behave correctly either.
Watchdog set to FF.
Is there anything I might be missing, anything I should do before disconnecting?

Pages

Subscribe to RSS - DA14580