/* Function used to update trans tx characteristic value.  */
at_ble_status_t trans_update_tx_char_value(gatt_service_handler_t *trans_service, uint8_t *trans_tx_value, uint8_t len)
/* Function used to update trans tx characteristic value.  */
at_ble_status_t trans_update_tx_char_value(gatt_service_handler_t *trans_service, uint8_t *trans_tx_value, uint8_t len)
{
	at_ble_status_t status = AT_BLE_SUCCESS;
	if ((status = at_ble_characteristic_value_set(trans_service->serv_chars[0].char_val_handle, trans_tx_value, 0, len)) != AT_BLE_SUCCESS){
		DBG_LOG("updating the characteristic failed:%d\r\n",status);
		return status;
	} else {
	}
	if(trans_tx_notification_flag){ 
		if((status = at_ble_notification_send(ble_connected_dev_info[0].handle, trans_service->serv_chars[0].char_val_handle)) != AT_BLE_SUCCESS) {
			DBG_LOG("sending notification failed:%d\r\n",status);
			return status;
		}
		else {
			return status;
		}
	}
	return status;
}