You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1-20Lines changed: 1 addition & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,11 @@ connecting to Google Cloud IoT Core.
5
5
6
6
This contains two parts: a library to make a JWT (json web token) which is used
7
7
to authenticate with Google Cloud IOT, and Arduino sketches that demonstrate
8
-
how to connect to Google Cloud IOT using the available HTTP and MQTT bridges.
8
+
how to connect to Google Cloud IOT using the available MQTT bridge.
9
9
10
10
**This example is not an officially supported Google product, does not have a
11
11
SLA/SLO, and should not be used in production.**
12
12
13
-
There's been a lot of confusion recently regarding which example to use,
14
-
it's recommended that you start with the lwmqtt (light-weight MQTT) examples
15
-
as they seem to be the most stable.
16
-
17
13
## Supported hardware targets
18
14
19
15
Currently, we support the following hardware targets:
@@ -133,32 +129,17 @@ board as [described on Hackster.io](https://www.hackster.io/arichetta/add-ssl-ce
133
129
You can see the Arduino client library in action in [the Cloud IoT Demo from Google I/O 2018](https://www.youtube.com/watch?v=7kpE44tXQak#T=28m)
134
130
135
131
## Error codes
136
-
If you're using a sample that uses PubSub MQTT, the error codes are listed
137
-
[in this header file](https://github.com/knolleary/pubsubclient/blob/master/src/PubSubClient.h#L44-L54).
138
132
139
133
The error codes for the lwMQTT library are listed [in this header file](https://github.com/256dpi/arduino-mqtt/blob/master/src/lwmqtt/lwmqtt.h#L16-L29).
140
134
141
135
## Known issues
142
136
143
-
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.
144
-
145
-
```
146
-
build_flags = -DMQTT_MAX_PACKET_SIZE=384
147
-
```
148
-
149
137
Some private keys do not correctly encode to the Base64 format that required
150
138
for the device bridge. If you've tried everything else, try regenerating your
151
139
device credentials and registering your device again with
152
140
153
141
gcloud iot devices create ...
154
142
155
-
### HTTP Examples
156
-
* We occasionally encounter 403 errors on these samples, not sure of the cause.
157
-
In some cases, it seems this is occurring due to invalid / bad iss / exp fields
158
-
in the JWT.
159
-
* Transmitting telemetry seems less reliable than setting state and getting
0 commit comments