<?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>Why can&amp;#39;t I decode my received data?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28712/why-can-t-i-decode-my-received-data</link><description>Hello, 
 I am sending a float in my BLE payload, using nRF Connect I can sniff and see that the value is being sending, it changes every time. 
 However, in my central when collecting the data, this value seems always to be zero, so I am doing something</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Dec 2017 12:59:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28712/why-can-t-i-decode-my-received-data" /><item><title>RE: Why can't I decode my received data?</title><link>https://devzone.nordicsemi.com/thread/113800?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 12:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdf6d64e-c4d5-4d6e-ad7f-3f65d3a1ccd2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You don&amp;#39;t have params in the ble_gattc_evt_t struct in ble_gattc.h?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**@brief GATTC event structure. */
typedef struct
{
  uint16_t            conn_handle;                /**&amp;lt; Connection Handle on which event occured. */
  uint16_t            gatt_status;                /**&amp;lt; GATT status code for the operation, see @ref BLE_GATT_STATUS_CODES. */
  uint16_t            error_handle;               /**&amp;lt; In case of error: The handle causing the error. In all other cases @ref BLE_GATT_HANDLE_INVALID. */
  union
  {
    ble_gattc_evt_prim_srvc_disc_rsp_t          prim_srvc_disc_rsp;         /**&amp;lt; Primary Service Discovery Response Event Parameters. */
    ble_gattc_evt_rel_disc_rsp_t                rel_disc_rsp;               /**&amp;lt; Relationship Discovery Response Event Parameters. */
    ble_gattc_evt_char_disc_rsp_t               char_disc_rsp;              /**&amp;lt; Characteristic Discovery Response Event Parameters. */
    ble_gattc_evt_desc_disc_rsp_t               desc_disc_rsp;              /**&amp;lt; Descriptor Discovery Response Event Parameters. */
    ble_gattc_evt_char_val_by_uuid_read_rsp_t   char_val_by_uuid_read_rsp;  /**&amp;lt; Characteristic Value Read by UUID Response Event Parameters. */
    ble_gattc_evt_read_rsp_t                    read_rsp;                   /**&amp;lt; Read Response Event Parameters. */
    ble_gattc_evt_char_vals_read_rsp_t          char_vals_read_rsp;         /**&amp;lt; Characteristic Values Read Response Event Parameters. */
    ble_gattc_evt_write_rsp_t                   write_rsp;                  /**&amp;lt; Write Response Event Parameters. */
    ble_gattc_evt_hvx_t                         hvx;                        /**&amp;lt; Handle Value Notification/Indication Event Parameters. */
    ble_gattc_evt_exchange_mtu_rsp_t            exchange_mtu_rsp;           /**&amp;lt; Exchange MTU Response Event Parameters. */
    ble_gattc_evt_timeout_t                     timeout;                    /**&amp;lt; Timeout Event Parameters. */
    ble_gattc_evt_attr_info_disc_rsp_t          attr_info_disc_rsp;         /**&amp;lt; Attribute Information Discovery Event Parameters. */
  } params;                                                                 /**&amp;lt; Event Parameters. @note Only valid if @ref gatt_status == @ref BLE_GATT_STATUS_SUCCESS. */
} ble_gattc_evt_t;
/** @} */
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I decode my received data?</title><link>https://devzone.nordicsemi.com/thread/113799?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 12:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a384ddf6-f341-4a41-b922-5dce1761828a</guid><dc:creator>ndarkness</dc:creator><description>&lt;p&gt;@Petter Myhre, I am using SDK12.2. If I use &lt;code&gt;p_ble_evt-&amp;gt;evt.gattc_evt.params.hvx.data[]&lt;/code&gt; I get an error saying&lt;code&gt;expected expression before &amp;#39;]&amp;#39; token&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I decode my received data?</title><link>https://devzone.nordicsemi.com/thread/113798?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 11:19:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca713703-472d-48ce-915f-1970a980bf1b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Which SDK and SoftDevice version are you using?&lt;/p&gt;
&lt;p&gt;Should it be&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_ble_evt-&amp;gt;evt.gattc_evt.params.hvx.data[]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;not&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_ble_evt-&amp;gt;evt.gattc_evt.paras.hvx.data[0]
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>