UM2264
BlueNRG-1 chat
demo application
DocID030868 Rev 1
29/55
on the BLE chat server device, the typed characters are sent to the BLE chat client
device by notifying the previously added TX characteristic (after notifications are
enabled) with:
aci_gatt_update_char_value(chatServHandle,TXCharHandle,0,len, (uint8_t*)cmd+j);
on the BLE chat client device, the typed characters are sent to the BLE chat server
device by writing the previously added RX characteristic with:
aci_gatt_write_without_resp(connection_handle, rx1, len, (uint8_t *)cmd+j);
Where
connection_handle
is the handle returned upon connection as a parameter of
the connection complete event, rx_handle is the RX characteristic handle discovered by the
client device.
Once these API commands have been sent, the values of the TX and RX characteristics
are displayed on the serial terminals.
Figure 18: BLE chat client
Figure 19: BLE chat server