Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit b7caeb0

Browse files
committed
Adds troubleshooting note from issues
1 parent 6c500e5 commit b7caeb0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ how to connect to Google Cloud IOT using the available HTTP and MQTT bridges.
1010
**This example is not an officially supported Google product, does not have a
1111
SLA/SLO, and should not be used in production.**
1212

13-
There's been a lot of confusion recently regarding which example to use,
13+
There's been a lot of confusion recently regarding which example to use,
1414
it's recommended that you start with the lwmqtt (light-weight MQTT) examples
1515
as they seem to be the most stable.
1616

@@ -116,9 +116,15 @@ The error codes for the lwMQTT library are listed [in this header file](https://
116116
If you're using PlatformIO with the PubSub client, add the following line to your platformio.ini to increase the packet size in the build step.
117117

118118
```
119-
build_flags = -DMQTT_MAX_PACKET_SIZE=384
119+
build_flags = -DMQTT_MAX_PACKET_SIZE=384
120120
```
121121

122+
Some private keys do not correctly encode to the Base64 format that required
123+
for the device bridge. If you've tried everything else, try regenerating your
124+
device credentials and registering your device again with
125+
126+
gcloud iot devices create ...
127+
122128
### HTTP Examples
123129
* We occasionally encounter 403 errors on these samples, not sure of the cause.
124130
In some cases, it seems this is occurring due to invalid / bad iss / exp fields

0 commit comments

Comments
 (0)