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

Commit 048ddf0

Browse files
authored
Small fixes for reported issues (#109)
1 parent 9ba09d5 commit 048ddf0

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,19 @@ console, that configuration will be reflrected on the device.
8686
Before the examples will work, you will also need to configure the root
8787
certificate as described in the configuration headers.
8888

89+
After you have published telemetry data, you can read it from the PubSub topic
90+
using the [Google Cloud SDK](https://cloud.google.com/sdk). With the SDK installed,
91+
run the following command to create a :
92+
93+
```
94+
gcloud pubsub subscriptions create <your-subscription-name> --topic=<your-iot-pubsub-topic>
95+
```
96+
97+
Then read the telemetry messages:
98+
```
99+
gcloud pubsub subscriptions pull --limit 500 --auto-ack <your-subscription-name>
100+
```
101+
89102
## Notes on the certificate
90103

91104
The [root certificate from Google](https://pki.goog/roots/pem) is used to verify communication to

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Google Cloud IoT Core JWT
2-
version=1.1.5
2+
version=1.1.6
33
author=Vladimir Korukov <mrvladimir@gusclass.com>
44
maintainer=Gus Class <github@gusclass.com>
55
sentence=Demonstrates JWT generation for connecting Arduino clients to Google Cloud IoT Core.

src/CloudIoTCoreMqtt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void messageReceived(String &topic, String &payload);
2323
// MQTT common functions
2424
///////////////////////////////
2525
CloudIoTCoreMqtt::CloudIoTCoreMqtt(
26-
MQTTClient *&_mqttClient, Client *&_netClient, CloudIoTCoreDevice *&_device){
26+
MQTTClient *_mqttClient, Client *_netClient, CloudIoTCoreDevice *_device){
2727
this->mqttClient = _mqttClient;
2828
this->netClient = _netClient;
2929
this->device = _device;

src/CloudIoTCoreMqtt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class CloudIoTCoreMqtt {
3535
CloudIoTCoreDevice *device;
3636

3737
public:
38-
CloudIoTCoreMqtt(MQTTClient *&mqttClient, Client *&netClient, CloudIoTCoreDevice *&device);
38+
CloudIoTCoreMqtt(MQTTClient *mqttClient, Client *netClient, CloudIoTCoreDevice *device);
3939

4040
void startMQTT();
4141
void publishTelemetry(String data);

0 commit comments

Comments
 (0)