<?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>how do i read integer data on the nrfcloud?Can u give some example code to get me started?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29981/how-do-i-read-integer-data-on-the-nrfcloud-can-u-give-some-example-code-to-get-me-started</link><description>I want to read integer data on the cloud
for example int a=1001;
This value must be displayed on the cloud service after every 5 seconds.Also i want to increament the value when i press the button connected to pin P1.10 that is when it reads a pulse</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Mar 2018 09:59:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29981/how-do-i-read-integer-data-on-the-nrfcloud-can-u-give-some-example-code-to-get-me-started" /><item><title>RE: how do i read integer data on the nrfcloud?Can u give some example code to get me started?</title><link>https://devzone.nordicsemi.com/thread/124330?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 09:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e12199c9-b324-400e-9054-4da1a0139098</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Most likely like this:&amp;nbsp;&lt;code&gt;buttons_leds_init()&lt;/code&gt; -&amp;gt;&amp;nbsp;&lt;code&gt;bsp_init()&lt;/code&gt; - &amp;gt;&amp;nbsp;&lt;code&gt;app_button_init()&lt;/code&gt; -&amp;gt;&amp;nbsp;&lt;code&gt;nrf_drv_gpiote_init().&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how do i read integer data on the nrfcloud?Can u give some example code to get me started?</title><link>https://devzone.nordicsemi.com/thread/124307?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 09:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c3c3482-c5d6-4939-82eb-b80a4df202a2</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;I am using the ble-peripheral/Template example.It is working without calling the nrf_derv_gpiote_init() funtion.Also the bsp_button_3 is giving the problem.I replaced both with port1.01 and port p0.02.And now its working .Thanks for ur help but i still cannot find where i called the init funtion.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how do i read integer data on the nrfcloud?Can u give some example code to get me started?</title><link>https://devzone.nordicsemi.com/thread/124298?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 08:56:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:360f644e-0fbf-4874-bd9c-30f109d15a22</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Please search your entire project for other functions calling&amp;nbsp;nrf_drv_gpiote_init(). If GPIOTE is already initialized, you should be able to use it without calling the init function.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how do i read integer data on the nrfcloud?Can u give some example code to get me started?</title><link>https://devzone.nordicsemi.com/thread/124266?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 06:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f8dd371-4e00-4c26-aaa3-2f4f38958ec6</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;i tried using another pin as input instead of button 3 but i am getting same error. please help i can confirm that&lt;/p&gt;
&lt;p&gt;nrf_drv_gpiote_init() is causing the error.but i dont know how to resolve it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how do i read integer data on the nrfcloud?Can u give some example code to get me started?</title><link>https://devzone.nordicsemi.com/thread/124203?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 15:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b42a1d1-d464-41c2-a067-c984aa18239a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;There are (at least) two functions inside&amp;nbsp;gpio_init() that can return error code 8 (NRF_ERROR_INVALID_STATE); &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__nrf__drv__gpiote.html#ga944d7d4e16e25fcbb6731d460ed07fdf"&gt;nrf_drv_gpiote_init&lt;/a&gt;() and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__nrf__drv__gpiote.html#gaa5908dc17e228373065e966a0159dfd2"&gt;nrf_drv_gpiote_in_init&lt;/a&gt;(). Please check which function is returning the error. If it is&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__nrf__drv__gpiote.html#ga944d7d4e16e25fcbb6731d460ed07fdf"&gt;nrf_drv_gpiote_init&lt;/a&gt;&amp;nbsp;that returns the error, please search your project for other functions/libraries that are using the GPIOTE driver. If&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__nrf__drv__gpiote.html#gaa5908dc17e228373065e966a0159dfd2"&gt;nrf_drv_gpiote_in_init&lt;/a&gt;&amp;nbsp;is returning this error, please make sure this pin is not for anything else in your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how do i read integer data on the nrfcloud?Can u give some example code to get me started?</title><link>https://devzone.nordicsemi.com/thread/124144?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 11:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9caa544-5627-45b1-851e-9444eea1089b</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;I followed the link and could send data to the nrfconnect app.But once i added the interrupt funtion to count the number of button press(pulses) the code was not working I am getting an errror 8[NRF_ERROR_INVALID_STATE] it happens when i add the gpio_init(); funtion here is the code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how do i read integer data on the nrfcloud?Can u give some example code to get me started?</title><link>https://devzone.nordicsemi.com/thread/119205?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 11:09:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80da3bd1-85c6-4f55-bc7b-3239418b8340</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;ok thanks i will look into it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how do i read integer data on the nrfcloud?Can u give some example code to get me started?</title><link>https://devzone.nordicsemi.com/thread/119204?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 13:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ac9e115-c10a-4370-82d6-5f97d8bc150e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can create a custom service that will send a notification on every variable change, or every 5 seconds if you want (controlled by a timer). We have some &lt;a href="https://devzone.nordicsemi.com/tutorials/"&gt;tutorials&lt;/a&gt; on creating custom services/characteristics here on DevZone, but they are a bit outdated. &lt;a href="https://github.com/bjornspockeli/custom_ble_service_example"&gt;This GitHub page&lt;/a&gt; contains an updated tutorial that support SDK 14 and nRF52840.&lt;/p&gt;
&lt;p&gt;For incrementing the variable using buttons, you can use the app_button library. &lt;a href="https://github.com/bjornspockeli/nRF52_peripherals_tutorial#3-buttons---button-handler-library"&gt;This page&lt;/a&gt; describe how this can be done. Note that there is &lt;a href="https://devzone.nordicsemi.com/question/166599/nrf-button-handler-not-working-on-nrf52-port1-gpios/"&gt;a bug&lt;/a&gt; in the SDK that that makes GPIOs on Port 1 on nRF52840 not work with the Button handler library.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>