<?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>Cloud Client App Message on Event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84774/cloud-client-app-message-on-event</link><description>Hi All! 
 I am using the cloud client example. The development board is nrf9160. This example works well and sends the message to nrf cloud on button press. Is it possible that it sends the message to a cloud client on an Event? Like when some Uart Interrupt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Feb 2022 20:33:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84774/cloud-client-app-message-on-event" /><item><title>RE: Cloud Client App Message on Event</title><link>https://devzone.nordicsemi.com/thread/353465?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 20:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afbaece6-df8e-4196-9a31-ce6ad2139ef3</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Thank you so much ! it&amp;#39;s working for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cloud Client App Message on Event</title><link>https://devzone.nordicsemi.com/thread/353282?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 09:02:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b0c702-cb0d-4b7c-95a0-e2acb7831963</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;You&amp;#39;re welcome :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cloud Client App Message on Event</title><link>https://devzone.nordicsemi.com/thread/353281?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 09:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:574d6a0c-0667-4f0f-9c7f-a3ae19b24208</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you so much for your response! I will try and update you!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Again Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cloud Client App Message on Event</title><link>https://devzone.nordicsemi.com/thread/353280?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 08:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3056c6e0-2a05-4e46-9bcc-109ecf4bc6f8</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Good to hear that you have added the UART interrupt. From the Cloud Client documentation you &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/samples/nrf9160/cloud_client/README.html#functions"&gt;should be able to use cloud_send()&lt;/a&gt;. This function is called in the cloud_update_work_fn(). In this function you can see that it sends CONFIG_CLOUD_MESSAGE, defined in the Kconfig. You will need to do something similar in your uart_cb.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cloud Client App Message on Event</title><link>https://devzone.nordicsemi.com/thread/353261?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 08:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcc1a1ea-c8a2-4736-9ace-02c4c63ce0ca</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for your response! Yes you are right i am talking about this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/reference/peripherals/uart.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/reference/peripherals/uart.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I added the UART Interrupt code into my cloud client code and it&amp;#39;s working fine.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; device *uart = &lt;/span&gt;&lt;span&gt;device_get_binding&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;UART_1&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;uart_irq_callback_set&lt;/span&gt;&lt;span&gt;(uart, uart_cb);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;uart_irq_rx_enable&lt;/span&gt;&lt;span&gt;(uart);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;printk&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;UART loopback start!&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Now my question is, how can I send the message to nrf cloud ? I am saving the incoming message from uart interrupt into an array and now want to send it to nrf cloud. Any idea?&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks in Advance!&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cloud Client App Message on Event</title><link>https://devzone.nordicsemi.com/thread/353184?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 17:37:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a0a5e68-52ef-418f-9823-a15e3d08e400</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What UART interrupt do you mean? Have you looked at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/reference/kernel/index.html#scheduling-interrupts-and-synchronization"&gt;Zephyr&amp;nbsp;Scheduling, Interrupts, and Synchronization&lt;/a&gt;?&lt;br /&gt;&lt;br /&gt;I did not have time to look into your issue today but will have a look first thing tomorrow.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cloud Client App Message on Event</title><link>https://devzone.nordicsemi.com/thread/353137?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 14:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95d52961-fa77-4427-9561-5c3e336214df</guid><dc:creator>Muhammad Usman</dc:creator><description>&lt;p&gt;Hi All!&lt;/p&gt;
&lt;p&gt;When I set &amp;quot;CONFIG_CLOUD_PUBLICATION_SEQUENTIAL=y&amp;quot; in the .config file.It successfully sends the messages to the cloud at a regular interval, it&amp;#39;s working fine!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now I want to edit my previous question, I need only to send the message to the cloud upon the UART interrupt occurrence.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks In advance!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>