<?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>nRFCloud, device self-assign to a group</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112923/nrfcloud-device-self-assign-to-a-group</link><description>Hello, 
 I am using nRFCloud with nRF9160 custom board sending data via CoAP. 
 I have a single firmware on my board, that will behave differently depending on the value of the rotary coded switch that is mounted on the board. 
 Basically, using the same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jul 2024 16:07:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112923/nrfcloud-device-self-assign-to-a-group" /><item><title>RE: nRFCloud, device self-assign to a group</title><link>https://devzone.nordicsemi.com/thread/493491?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 16:07:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96d0955a-f524-4800-b10f-2819a8d9d2c4</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt;You can use any https client, including&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/https_client/README.html"&gt;HTTPS Client (nordicsemi.com)&lt;/a&gt;&amp;nbsp;to send REST API request.&lt;/p&gt;
&lt;p&gt;Following is the REST API to change device tags. Remember to set&amp;nbsp;CONFIG_HTTPS_HOSTNAME=&amp;quot;api.nrfcloud.com&amp;quot; and replace&amp;nbsp;nrf\samples\net\https_client\cert\DigiCertGlobalG2.pem with&amp;nbsp;&lt;a href="https://www.amazontrust.com/repository/AmazonRootCA1.pem"&gt;amazontrust.com/repository/AmazonRootCA1.pem&lt;/a&gt;&amp;nbsp;since nRF Cloud is running on top of AWS.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define HTTP_HEAD  \
	&amp;quot;PUT /v1/devices/50363953-3234-4ab4-8025-xxxxxxxxxxxxxx/tags HTTP/1.1\r\n&amp;quot;  \
    &amp;quot;Host: &amp;quot;CONFIG_HTTPS_HOSTNAME&amp;quot;\r\n&amp;quot;  \
	&amp;quot;Content-Type: application/json\r\n&amp;quot;  \
    &amp;quot;Authorization: Bearer a6a0d3f0fc4fd3b61ab47366772a7dxxxxxxxxxxxxx\r\n&amp;quot;  \
	&amp;quot;Content-Length: 17\r\n&amp;quot; \
	&amp;quot;Connection: close\r\n\r\n&amp;quot;\
	&amp;quot;[\&amp;quot;test3\&amp;quot;,\&amp;quot;test4\&amp;quot;]&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRFCloud, device self-assign to a group</title><link>https://devzone.nordicsemi.com/thread/493399?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 11:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96fef78a-43d8-46b9-9efd-fa044922ad16</guid><dc:creator>Vincent44</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;My question concerns the device side.&lt;/p&gt;
&lt;p&gt;Is it possible to implement this from the device side ? If so, how ?&lt;/p&gt;
&lt;p&gt;For example, functions such as nrf_cloud_rest_shadow_device_status_update() will send some device&amp;#39;s info to nRFCloud. However, I couldn&amp;#39;t find any function that allows setting a group for the device.&lt;/p&gt;
&lt;p&gt;Would &lt;span class="w"&gt;&lt;/span&gt;&lt;span class="sig-name descname"&gt;&lt;span class="n"&gt;&lt;span class="pre"&gt;nrf_cloud_rest_send_device_message&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="sig-paren"&gt;&lt;/span&gt;() be the one to use&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRFCloud, device self-assign to a group</title><link>https://devzone.nordicsemi.com/thread/493387?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 11:45:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57cd8ec4-21d8-4692-8053-9acfd9913684</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Vicent,&lt;/p&gt;
&lt;p&gt;Yes, there&amp;nbsp;is nRF Cloud API&amp;nbsp;for Groups tag operations, you can even add several tags for the same device. See&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Associations/DeviceGroups/WorkingWithDeviceGroupsAPIs.html#organizing-devices-with-the-nrf-cloud-apis"&gt;Organizing devices with the nRF Cloud APIs (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://api.nrfcloud.com/v1/#tag/All-Devices/operation/UpdateDeviceTags"&gt;https://api.nrfcloud.com/v1/#tag/All-Devices/operation/UpdateDeviceTags&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>