<?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>nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52401/nrf9160-to-google-cloud-pub-sub-build-errors</link><description>Hi, 
 I followed this guide to send data to the GCP using the Thingy:91 : https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-connect-nrf91-to-google-cloud 
 Im pretty sure I did it correct and followed all steps listed there. 
 
 But</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2020 09:34:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52401/nrf9160-to-google-cloud-pub-sub-build-errors" /><item><title>RE: nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/thread/232770?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 09:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb076893-c8fb-4215-92ca-7b671db1d3f9</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi Dheeraj, please make a&amp;nbsp;&lt;em&gt;new&lt;/em&gt; ticket on DevZone and explain the issue while also linking to this ticket if it&amp;#39;s similar.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/thread/232690?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 23:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6d332a0-4be5-4bec-8c50-4f56e57795ed</guid><dc:creator>Dheeraj</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am facing the same above issue while connecting my &lt;strong&gt;Thingy91 PCA20035&lt;/strong&gt; device to &lt;strong&gt;Google cloud&lt;/strong&gt; uisng &lt;strong&gt;MQTT bridge.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I have placed &lt;strong&gt;nRFDKtoGoogleCloud&lt;/strong&gt; folder&amp;nbsp;&lt;span&gt;inside the &lt;strong&gt;ncs&lt;/strong&gt;-folder, for example giving the path&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;&lt;em&gt;\ncs\nrf\samples\nrf9160\nRF9160DKtoGoogleCloud.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;I followed this guide&amp;nbsp;&lt;span&gt;to send data to the GCP using the &lt;strong&gt;Thingy:91&lt;/strong&gt; :&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-connect-nrf91-to-google-cloud"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-connect-nrf91-to-google-cloud&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;I&lt;/span&gt;&lt;/em&gt; m pretty sure I did it correct and followed all steps listed there.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After writing the hex file to the thingy:91 this is the serial output.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;This is my build error logs:&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;***** Booting Zephyr OS version 2.1.0-rc1 *****
Provisioning
GCLOUD_HOSTNAME:mqtt.googleapis.com
GCLOUD THREAD LIVES
[00:00:00.939,575] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory
[00:00:01.519,470] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory
[00:00:02.098,663] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory
[00:00:02.678,314] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory
[00:00:03.260,894] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory
[00:00:03.386,901] &amp;lt;dbg&amp;gt; gcloud.gcloud_provision: CERT:
-----BEGIN CERTIFICATE-----
MIIBdTCCARugAwIBAgIJAOvj4PVfAgqjMAoGCCqGSM49BAMCMBYxFDASBgNVBAMM
C25yZjkxLW1hcnRlMCAXDTE5MDQwNTExMTUxN1oYDzQ3NTcwMzAyMTExNTE3WjAW
MRQwEgYDVQQDDAtucmY5MS1tYXJ0ZTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IA
BAq8otkWGnocpdAxlnpJdVn6EBb1WbQnZXLFaYzsMeXWGFIIO02hWTvaSUPI1xNs
0QB8c3IU9oBhDXkRNU2Nqi2jUDBOMB0GA1UdDgQWBBRLAhO335CAd280I/qVQmiM
07nd8TAfBgNVHSMEGDAWgBRLAhO335CAd280I/qVQmiM07nd8TAMBgNVHRMEBTAD
AQH/MAoGCCqGSM49BAMCA0gAMEUCIF2kQO7Cqn73ANmwBdgGA1y/KGOpOU4I/ywF
LEu8trOUAiEA8//UWttMRkmaylghw3mgsYGGKk17rY+4j+4mGUwvDnw=
-----END CERTIFICATE-----

Provisioning complete
Initializing modem
Establishing LTE link (this may take some time) ...
[00:00:06.564,483] &amp;lt;dbg&amp;gt; lte_lc.parse_nw_reg_status: Network registration status: 2
[00:00:09.131,195] &amp;lt;dbg&amp;gt; lte_lc.parse_nw_reg_status: Network registration status: 5
Modem configured
Connecting to Google Cloud
[00:00:09.227,691] &amp;lt;inf&amp;gt; gcloud: Got CONNECT command
[00:00:09.252,288] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Initiating broker
[00:00:09.676,086] &amp;lt;dbg&amp;gt; gcloud.broker_init: IPv4 Address found 0xce857d4a
[00:00:09.702,667] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Making JWT
[00:00:10.487,609] &amp;lt;dbg&amp;gt; gcloud.make_jwt: timestamp: 1580855965
Timestamp: 1580855965[00:00:10.830,932] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Initiating client
[00:00:11.204,559] &amp;lt;dbg&amp;gt; gcloud.make_jwt: timestamp: 1580855966
Timestamp: 1580855966[00:00:11.547,485] &amp;lt;dbg&amp;gt; gcloud.client_init: JWT:
eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJzcGFucGFya2luZyIsImV4cCI6MTU4MDg5OTE2NiwiaWF0IjoxNTgwODU1OTY2fQ.g1_nGrphjRQ5kFYHij3hlTmLZp81dy9615EoEtSxyNnyf92dlW3lMpzmRYifMqp_3C4ElG1TaGXLX3r4ImQvtA

[00:00:11.589,355] &amp;lt;dbg&amp;gt; gcloud.client_init: JWT length: 198
[00:00:11.667,724] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Starting input timer
[00:00:11.693,725] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Connecting mqtt
[00:00:11.739,135] &amp;lt;err&amp;gt; gcloud: mqtt_connect failed: -22 Invalid argument
GCLOUD THREAD LIVES
Sending JSON data:
{
&amp;quot;Message&amp;quot;: 22019
}
[00:00:19.285,156] &amp;lt;wrn&amp;gt; gcloud: Cannot publish data while not connected to Google Cloud
[00:00:21.693,817] &amp;lt;inf&amp;gt; gcloud: Got INPUT_TIMEOUT command

GCLOUD THREAD LIVES
Sending JSON data:
{
&amp;quot;Message&amp;quot;: 22019
}
[00:00:19.285,256] &amp;lt;wrn&amp;gt;&amp;#160;gcloud: Cannot publish data while not connected to Google Cloud
[00:00:21.693,917] &amp;lt;inf&amp;gt; gcloud: Got INPUT_TIMEOUT command&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please help me with the possible solution to fix the above issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is missing my final deadline for production.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/thread/211583?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 14:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c857c0db-ef83-4079-9d8e-4bf02eabf1d6</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;Yes, connection refused does sound like a problem with certificates or how the device was added on Google Cloud.&lt;/p&gt;
&lt;p&gt;Great that you managed to solve it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/thread/211579?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 14:16:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faf7a41d-64fa-49c5-9ed7-d8ad6a18064e</guid><dc:creator>T1mS_</dc:creator><description>&lt;p&gt;Hi  ,&lt;/p&gt;
&lt;p&gt;now it works. The problem was in the Google Cloud I guess. Something with the certificates. The error was &amp;quot;connection refused&amp;quot; so I added the device again to the cloud. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/thread/211493?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 10:25:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2b1b08e-6591-411c-a3c7-5b148fe635bc</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;In order to&amp;nbsp;find&amp;nbsp;what error number -13 is, you can use strerror().&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;printk(&amp;quot;err: %d\n&amp;quot;, strerror(-err));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will print what error number -13 corresponds to. You can add this where the following is in the code&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;LOG_ERR(&amp;quot;mqtt_input failed: %d&amp;quot;, err);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;That is, line 635 in gcloud.c&lt;/p&gt;
&lt;p&gt;strerror() must take a positive error number, hence the minus in front of err in the code above.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/thread/211457?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 08:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bb3ee21-41f8-40b5-a566-2087fdc5ab06</guid><dc:creator>T1mS_</dc:creator><description>&lt;p&gt;Hi  ,&lt;/p&gt;
&lt;p&gt;I tried it again today and now I get error -13.&lt;/p&gt;
&lt;p&gt;I tried to find some information about the error number but can&amp;#39;t find any.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Provisioning complete
Initializing modem
Establishing LTE link (this may take some time) ...
[00:00:04.352,233] &amp;lt;inf&amp;gt; lte_lc: Using legacy LTE PCO mode...
Modem configured
Connecting to Google Cloud
[00:00:25.399,536] &amp;lt;inf&amp;gt; gcloud: Got CONNECT command
[00:00:25.399,536] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Initiating broker
[00:00:25.771,453] &amp;lt;dbg&amp;gt; gcloud.broker_init: IPv4 Address found 0xce857d4a
[00:00:25.771,484] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Making JWT
[00:00:26.301,574] &amp;lt;dbg&amp;gt; gcloud.make_jwt: timestamp: 1569312515
[00:00:26.596,160] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Initiating client
[00:00:27.723,602] &amp;lt;dbg&amp;gt; gcloud.make_jwt: timestamp: 1569312517
[00:00:28.018,188] &amp;lt;dbg&amp;gt; gcloud.client_init: JWT:
eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmbHV0ZWQtY2xvY2stMjQ5MzE1IiwiZXhwIjoxNTY5MzU1NzE3LCJpYXQiOjE1NjkzMTI1MTd9.6MoUK~

[00:00:28.018,218] &amp;lt;dbg&amp;gt; gcloud.client_init: JWT length: 208
[00:00:28.018,218] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Starting input timer
[00:00:28.018,249] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Connecting mqtt
Sending JSON data:
{
&amp;quot;Message&amp;quot;:22019
}
[00:00:35.409,729] &amp;lt;wrn&amp;gt; gcloud: Cannot publish data while not connected to Google Cloud
[00:00:39.603,912] &amp;lt;err&amp;gt; gcloud: mqtt_connect failed: -111 Connection refused
GCLOUD THREAD LIVES
[00:00:39.603,942] &amp;lt;inf&amp;gt; gcloud: Got INPUT_TIMEOUT command
[00:00:39.603,973] &amp;lt;err&amp;gt; gcloud: mqtt_input failed: -13
GCLOUD THREAD LIVES
Sending JSON data:
{
&amp;quot;Message&amp;quot;:22019
}
[00:00:45.419,952] &amp;lt;wrn&amp;gt; gcloud: Cannot publish data while not connected to Google Cloud
[00:00:48.018,249] &amp;lt;inf&amp;gt; gcloud: Got INPUT_TIMEOUT command
[00:00:48.018,280] &amp;lt;err&amp;gt; gcloud: mqtt_input failed: -13
GCLOUD THREAD LIVES&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/thread/211346?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 15:30:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:964d9a89-13ea-47e6-ae46-359392353843</guid><dc:creator>T1mS_</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;this did the trick! Now it is not crashing anymore.&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f62c.svg" title="Grimacing"&gt;&amp;#x1f62c;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now it fails at sending the data... :D&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;phyr Oa***** Booting Zephyr OS build v1.14.99-ncs3-snapshot2-1279-g1c3a001f62e6 *****
[00:00:00.291,717] &amp;lt;err&amp;gt; at_host: UART check failed: 12. Dropping buffer and retrying.
Provisioning
GCLOUD THREAD LIVES
[00:00:02.575,225] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory
[00:00:03.008,209] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory
[00:00:03.445,648] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory
[00:00:03.885,925] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory
[00:00:03.885,925] &amp;lt;dbg&amp;gt; gcloud.gcloud_provision: CERT:
-----BEGIN CERTIFICATE-----
MIIBdTCCARugAwIBAgIJAOvj4PVfAgqjMAoGCCqGSM49BAMCMBYxFDASBgNVBAMM
C25yZjkxLW1hcnRlMCAXDTE5MDQwNTExMTUxN1oYDzQ3NTcwMzAyMTExNTE3WjAW
MRQwEgYDVQQDDAtucmY5MS1tYXJ0ZTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IA
BAq8otkWGnocpdAxlnpJdVn6EBb1WbQnZXLFaYzsMeXWGFIIO02hWTvaSUPI1xNs
0QB8c3IU9oBhDXkRNU2Nqi2jUDBOMB0GA1UdDgQWBBRLAhO335CAd280I/qVQmiM
07nd8TAfBgNVHSMEGDAWgBRLAhO335CAd280I/qVQmiM07nd8TAMBgNVHRMEBTAD
AQH/MAoGCCqGSM49BAMCA0gAMEUCIF2kQO7Cqn73ANmwBdgGA1y/KGOpOU4I/ywF
LEu8trOUAiEA8//UWttMRkmaylghw3mgsYGGKk17rY+4j+4mGUwvDnw=
-----END CERTIFICATE-----

Provisioning complete
Initializing modem
Establishing LTE link (this may take some time) ...
[00:00:04.336,090] &amp;lt;inf&amp;gt; lte_lc: Using legacy LTE PCO mode...
Modem configured
Connecting to Google Cloud
[00:00:29.186,645] &amp;lt;inf&amp;gt; gcloud: Got CONNECT command
[00:00:29.186,645] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Initiating broker
[00:00:29.588,562] &amp;lt;dbg&amp;gt; gcloud.broker_init: IPv4 Address found 0xce857d4a
[00:00:29.588,592] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Making JWT
[00:00:30.038,696] &amp;lt;dbg&amp;gt; gcloud.make_jwt: timestamp: 1569252388
[00:00:30.333,160] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Initiating client
[00:00:30.900,695] &amp;lt;dbg&amp;gt; gcloud.make_jwt: timestamp: 1569252389
[00:00:31.194,732] &amp;lt;dbg&amp;gt; gcloud.client_init: JWT:
eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmbHV0ZWQtY2xvY2stMjQ5MzE1IiwiZXhwIjoxNTY5Mjk1NTg5LCJpYXQiOjE1NjkyNTIzODl9.tc22w~

[00:00:31.194,763] &amp;lt;dbg&amp;gt; gcloud.client_init: JWT length: 208
[00:00:31.194,763] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Starting input timer
[00:00:31.194,793] &amp;lt;dbg&amp;gt; gcloud.gcloud_thread: Connecting mqtt
GCLOUD THREAD LIVES
Sending JSON data:
{
&amp;quot;Message&amp;quot;:22019
}
[00:00:39.196,838] &amp;lt;wrn&amp;gt; gcloud: Cannot publish data while not connected to Google Cloud
[00:00:41.194,824] &amp;lt;inf&amp;gt; gcloud: Got INPUT_TIMEOUT command
[00:00:41.194,885] &amp;lt;inf&amp;gt; gcloud: MQTT event: 0
[00:00:41.194,885] &amp;lt;dbg&amp;gt; gcloud.mqtt_event_handler: Got CONNACK
[00:00:41.194,915] &amp;lt;err&amp;gt; gcloud: MQTT connect failed: 5
GCLOUD THREAD LIVES
Sending JSON data:
{
&amp;quot;Message&amp;quot;:22019
}
[00:00:49.207,061] &amp;lt;wrn&amp;gt; gcloud: Cannot publish data while not connected to Google Cloud
[00:00:51.194,824] &amp;lt;inf&amp;gt; gcloud: Got INPUT_TIMEOUT command
GCLOUD THREAD LIVES
Sending JSON data:
{
&amp;quot;Message&amp;quot;:22019
}
[00:00:59.217,285] &amp;lt;wrn&amp;gt; gcloud: Cannot publish data while not connected to Google Cloud
[00:01:01.194,824] &amp;lt;inf&amp;gt; gcloud: Got INPUT_TIMEOUT command
GCLOUD THREAD LIVES&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With the lte link monitor I proved that I have an lte connection, so this should not be the reason for the error.&lt;/p&gt;
&lt;p&gt;I also get the &amp;quot;CONNACK&amp;quot; so I have a connection, right?&lt;/p&gt;
&lt;p&gt;Right after the &amp;quot;&lt;span&gt;Connect acknowledgment&amp;quot; I get &amp;quot;MQTT connect failed: 5&amp;quot;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will search around to finf out what this means. :)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Do you might have another tip for me?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/thread/211323?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 14:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5e381ff-6ff8-4f2c-8977-91a7a2f1101e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;This tells you that it fails at&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;return api-&amp;gt;write(port, access_op, pin, value);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you scroll up, you will see which function it fails in, which I assume is the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static inline int z_impl_gpio_write&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It seems like the problem might be related to nRF9160DK and Thingy:91 having different pinouts, considering the project was originally written for the DK. I would assume that the LEDs are the problem, so one possible fix is to remove all instances in main.c where the following function is called&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;dk_set_led_on()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Let me know whether this works.&lt;/p&gt;
&lt;p&gt;Best Regard,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/thread/211306?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 13:47:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a3e65d1-f264-40c3-8605-48c73b3b3e3d</guid><dc:creator>T1mS_</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;m already on v1.0.0.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To be honest, I&amp;#39;ve no idea what this tells me:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1569246133687v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/thread/211300?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 13:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29adbd11-aa43-4ed2-a9c6-87a701a22c30</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried with version v1.0.0 of ncs?&lt;/p&gt;
&lt;p&gt;Also, to get more information about when the hard fault happened, you can open the file /build/zephyr/zephyr.lst and search for your faulting instruction address, which is 1921c in the output above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 to Google Cloud Pub/Sub: Build errors</title><link>https://devzone.nordicsemi.com/thread/211245?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 12:17:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea394c6f-9849-482a-a82a-919f416c4a2d</guid><dc:creator>T1mS_</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I fixed the error. After moving the whole directory to the c drive root instead of using all these sub folders.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After writing the hex file to the thingy:91 this is the serial output. Did messed something up with the certificates?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;9-23T13:00:52.943Z INFO Modem port is opened
2019-09-23T13:00:52.949Z DEBUG modem &amp;gt;&amp;gt; AT+CFUN?\x0D\x0A
2019-09-23T13:01:04.632Z INFO Modem port is opened
2019-09-23T13:01:04.634Z DEBUG modem &amp;lt;&amp;lt; [00:00:01.161,804] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory\x0D\x0A
2019-09-23T13:01:04.635Z DEBUG modem &amp;lt;&amp;lt; [00:00:01.595,428] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory\x0D
2019-09-23T13:01:04.636Z DEBUG modem &amp;gt;&amp;gt; AT+CFUN?\x0D\x0A
2019-09-23T13:01:04.638Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.032,806] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory\x0D\x0A
2019-09-23T13:01:04.780Z DEBUG modem &amp;lt;&amp;lt; +CFUN: 4\x0D
2019-09-23T13:01:04.781Z DEBUG modem &amp;lt;&amp;lt; \x0A
2019-09-23T13:01:04.782Z DEBUG modem &amp;lt;&amp;lt; OK\x0D\x0A\x00
2019-09-23T13:01:04.787Z DEBUG modem &amp;gt;&amp;gt; AT+CFUN=1\x0D\x0A
2019-09-23T13:01:05.569Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.473,114] &amp;lt;err&amp;gt; gcloud: key delete err: 2 No such file or directory\x0D
2019-09-23T13:01:05.574Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.473,114] &amp;lt;dbg&amp;gt; gcloud.gcloud_provision: CERT:\x0A
2019-09-23T13:01:05.576Z DEBUG modem &amp;lt;&amp;lt; -----BEGIN CERTIFICATE-----\x0A
2019-09-23T13:01:05.583Z DEBUG modem &amp;lt;&amp;lt; MIIBdTCCARugAwIBAgIJAOvj4PVfAgqjMAoGCCqGSM49BAMCMBYxFDASBgNVBAMM\x0A
2019-09-23T13:01:05.587Z DEBUG modem &amp;lt;&amp;lt; C25yZjkxLW1hcnRlMCAXDTE5MDQwNTExMTUxN1oYDzQ3NTcwMzAyMTExNTE3WjAW\x0A
2019-09-23T13:01:05.592Z DEBUG modem &amp;lt;&amp;lt; MRQwEgYDVQQDDAtucmY5MS1tYXJ0ZTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IA\x0A
2019-09-23T13:01:05.599Z DEBUG modem &amp;lt;&amp;lt; BAq8otkWGnocpdAxlnpJdVn6EBb1WbQnZXLFaYzsMeXWGFIIO02hWTvaSUPI1xNs\x0A
2019-09-23T13:01:05.604Z DEBUG modem &amp;lt;&amp;lt; 0QB8c3IU9oBhDXkRNU2Nqi2jUDBOMB0GA1UdDgQWBBRLAhO335CAd280I/qVQmiM\x0A
2019-09-23T13:01:05.610Z DEBUG modem &amp;lt;&amp;lt; 07nd8TAfBgNVHSMEGDAWgBRLAhO335CAd280I/qVQmiM07nd8TAMBgNVHRMEBTAD\x0A
2019-09-23T13:01:05.615Z DEBUG modem &amp;lt;&amp;lt; AQH/MAoGCCqGSM49BAMCA0gAMEUCIF2kQO7Cqn73ANmwBdgGA1y/KGOpOU4I/ywF\x0A
2019-09-23T13:01:05.620Z DEBUG modem &amp;lt;&amp;lt; LEu8trOUAiEA8//UWttMRkmaylghw3mgsYGGKk17rY+4j+4mGUwvDnw=\x0A
2019-09-23T13:01:05.622Z DEBUG modem &amp;lt;&amp;lt; -----END CERTIFICATE-----\x0A\x0D
2019-09-23T13:01:06.600Z DEBUG modem &amp;lt;&amp;lt; OK\x0D
2019-09-23T13:01:06.603Z DEBUG modem &amp;lt;&amp;lt; Initializing modem\x0A
2019-09-23T13:01:06.606Z DEBUG modem &amp;lt;&amp;lt; --- 1 messages dropped ---\x0D
2019-09-23T13:01:06.610Z DEBUG modem &amp;lt;&amp;lt; Establishing LTE link (this may take some time) ...\x0A
2019-09-23T13:01:06.617Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.341,705] &amp;lt;inf&amp;gt; lte_lc: Using legacy LTE PCO mode...\x0D\x0A
2019-09-23T13:01:06.618Z DEBUG modem &amp;lt;&amp;lt; Modem configured\x0A\x0D
2019-09-23T13:01:06.620Z DEBUG modem &amp;lt;&amp;lt; Connecting to Google Cloud\x0A\x0D
2019-09-23T13:01:06.625Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,193] &amp;lt;err&amp;gt; os: Exception occurred in Secure State\x0D
2019-09-23T13:01:06.633Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,224] &amp;lt;err&amp;gt; os: ***** HARD FAULT *****\x0D
2019-09-23T13:01:06.635Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,224] &amp;lt;err&amp;gt; os:   Fault escalation (see below)\x0D\x0A
2019-09-23T13:01:06.640Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,254] &amp;lt;err&amp;gt; os: ***** BUS FAULT *****\x0D
2019-09-23T13:01:06.645Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,254] &amp;lt;err&amp;gt; os:   Precise data bus error\x0D
2019-09-23T13:01:06.650Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,254] &amp;lt;err&amp;gt; os:   BFAR Address: 0x50008120\x0D
2019-09-23T13:01:06.657Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,285] &amp;lt;err&amp;gt; os: r0/a1:  0x00000003  r1/a2:  0x00000001  r2/a3:  0x00037ad0\x0D
2019-09-23T13:01:06.666Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,285] &amp;lt;err&amp;gt; os: r3/a4:  0x00000001 r12/ip:  0x20029104 r14/lr:  0x00012be5\x0D
2019-09-23T13:01:06.669Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,315] &amp;lt;err&amp;gt; os:  xpsr:  0x61000000\x0D
2019-09-23T13:01:06.678Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,315] &amp;lt;err&amp;gt; os: s[0]:  0x00000000  s[1]:  0x00000000  s[2]:  0x00000000  s[3]:  0x00000000\x0A
2019-09-23T13:01:06.688Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,346] &amp;lt;err&amp;gt; os: s[4]:  0x00000000  s[5]:  0x00000000  s[6]:  0x00000000  s[7]:  0x00000000\x0A
2019-09-23T13:01:06.699Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,376] &amp;lt;err&amp;gt; os: s[8]:  0x00000000  s[9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000\x0A
2019-09-23T13:01:06.707Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,376] &amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0xffffffff  s[14]:  0x00000000  s[15]:  0x00000000\x0A
2019-09-23T13:01:06.711Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,407] &amp;lt;err&amp;gt; os: fpscr:  0x00000000\x0A
2019-09-23T13:01:06.718Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,407] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0001921c\x0D
2019-09-23T13:01:06.724Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,407] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 0: CPU exception\x0D
2019-09-23T13:01:06.733Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.342,437] &amp;lt;err&amp;gt; os: Current thread: 0x20023214 (unknown)\x0D\x0A
2019-09-23T13:01:06.735Z DEBUG modem &amp;lt;&amp;lt; [00:00:04.470,947] &amp;lt;err&amp;gt; os: Halting system\x0D\x0A&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>