<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Image Transfer Demo Gatt Client Data Readin</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96858/image-transfer-demo-gatt-client-data-readin</link><description>Hi Everyone, 
 I am trying to create a central nrf to see the retrieved image chunk files from the image transfer service. I was looking at the Zephyr example (peripheral_hr_coded) and it does the same thing I asked for. I changed the UUIDs accordingly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Feb 2023 06:54:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96858/image-transfer-demo-gatt-client-data-readin" /><item><title>RE: Image Transfer Demo Gatt Client Data Readin</title><link>https://devzone.nordicsemi.com/thread/411242?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2023 06:54:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:842d3bfc-dcf0-47c5-b96c-6d129e39340c</guid><dc:creator>bsarica</dc:creator><description>&lt;p&gt;I was writing log messages. I find another forum question about it and it says that it was given this error because of the bad pointer. I will try different technique and let you know,&lt;/p&gt;
&lt;p&gt;Thank you in advance,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image Transfer Demo Gatt Client Data Readin</title><link>https://devzone.nordicsemi.com/thread/411140?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 14:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67cc0c81-0c24-4d9c-acd7-a9dd5df68a58</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="bsarica"]For an additional information, I tried this kind of stuff without creating a client but I am getting the error I put below.[/quote]
&lt;p&gt;How far does it get before it throws that error?&lt;/p&gt;
&lt;p&gt;It looks like the application is trying to change the value of something it is not allowed to change.&lt;/p&gt;
&lt;p&gt;What does the log say directly before it says &amp;quot;MPU FAULT&amp;quot;?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image Transfer Demo Gatt Client Data Readin</title><link>https://devzone.nordicsemi.com/thread/411003?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 06:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4de13644-99db-42c8-acc6-0993bd641568</guid><dc:creator>bsarica</dc:creator><description>&lt;p&gt;For an additional information, I tried this kind of stuff without creating a client but I am getting the error I put below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void discovery_complete(struct bt_gatt_dm *dm,
			       void *context)
{

	const struct bt_gatt_dm_attr *gatt_service_attr =
			bt_gatt_dm_service_get(dm);
	const struct bt_gatt_service_val *gatt_service =
			bt_gatt_dm_attr_service_val(gatt_service_attr);


	if(bt_uuid_cmp(gatt_service-&amp;gt;uuid,APP_UUID))
		return;

	const struct bt_gatt_dm_attr *gatt_chrc;
	const struct bt_gatt_dm_attr *gatt_desc;

	int err;
	gatt_chrc = bt_gatt_dm_char_by_uuid(dm,CHAR_UUID);

	if(err){
		printk(&amp;quot;Cannot Find\n&amp;quot;);
	}	

	gatt_desc = bt_gatt_dm_desc_by_uuid(dm,gatt_chrc,APP_UUID);

	uuid_handle = gatt_desc-&amp;gt;handle;

	gatt_desc = bt_gatt_dm_desc_by_uuid(dm, gatt_chrc, BT_UUID_GATT_CCC);

	ccc_handle = gatt_desc-&amp;gt;handle;

	conn = bt_gatt_dm_conn_get(dm);

	printk(&amp;quot;Connection&amp;quot;);
	
	struct bt_gatt_subscribe_params *params = local_params;
	params-&amp;gt;ccc_handle = ccc_handle;
	params-&amp;gt;value = BT_GATT_CCC_NOTIFY;
	params-&amp;gt;value_handle = uuid_handle;
	params-&amp;gt;notify = char_read_cb;

	atomic_set_bit(params-&amp;gt;flags, BT_GATT_SUBSCRIBE_FLAG_VOLATILE);

	bt_gatt_subscribe(conn,params);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:360px;max-width:360px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/720x720/__key/communityserver-discussions-components-files/4/pastedimage1676961970705v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>