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

Commit

Permalink
Small fixes for reported issues (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
gguuss authored May 17, 2019
1 parent 9ba09d5 commit 048ddf0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@ console, that configuration will be reflrected on the device.
Before the examples will work, you will also need to configure the root
certificate as described in the configuration headers.

After you have published telemetry data, you can read it from the PubSub topic
using the [Google Cloud SDK](https://cloud.google.com/sdk). With the SDK installed,
run the following command to create a :

```
gcloud pubsub subscriptions create <your-subscription-name> --topic=<your-iot-pubsub-topic>
```

Then read the telemetry messages:
```
gcloud pubsub subscriptions pull --limit 500 --auto-ack <your-subscription-name>
```

## Notes on the certificate

The [root certificate from Google](https://pki.goog/roots/pem) is used to verify communication to
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Google Cloud IoT Core JWT
version=1.1.5
version=1.1.6
author=Vladimir Korukov <[email protected]>
maintainer=Gus Class <[email protected]>
sentence=Demonstrates JWT generation for connecting Arduino clients to Google Cloud IoT Core.
Expand Down
2 changes: 1 addition & 1 deletion src/CloudIoTCoreMqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void messageReceived(String &topic, String &payload);
// MQTT common functions
///////////////////////////////
CloudIoTCoreMqtt::CloudIoTCoreMqtt(
MQTTClient *&_mqttClient, Client *&_netClient, CloudIoTCoreDevice *&_device){
MQTTClient *_mqttClient, Client *_netClient, CloudIoTCoreDevice *_device){
this->mqttClient = _mqttClient;
this->netClient = _netClient;
this->device = _device;
Expand Down
2 changes: 1 addition & 1 deletion src/CloudIoTCoreMqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CloudIoTCoreMqtt {
CloudIoTCoreDevice *device;

public:
CloudIoTCoreMqtt(MQTTClient *&mqttClient, Client *&netClient, CloudIoTCoreDevice *&device);
CloudIoTCoreMqtt(MQTTClient *mqttClient, Client *netClient, CloudIoTCoreDevice *device);

void startMQTT();
void publishTelemetry(String data);
Expand Down

0 comments on commit 048ddf0

Please sign in to comment.