GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Final additions in private beta by gguuss · Pull Request #489 · GoogleCloudPlatform/nodejs-docs-samples

Conversation

@gguuss

@gguuss gguuss commented Sep 22, 2017

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gguuss
Final additions in private beta
e47f4c3
@gguuss gguuss added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 22, 2017
gguuss added 2 commits September 25, 2017 12:26
@gguuss
Changes to registry create
e670a34
@gguuss
Adds HTTP client and state support for MQTT
4c83c85
dizcology
dizcology reviewed Sep 25, 2017
View reviewed changes

@dizcology dizcology left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how easy it would be to add tests for the codes in http_example/. If it is easy and makes sense to have them, please consider adding some tests.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread iot/http_example/README.md Outdated

# Google Cloud IoT Core NodeJS HTTP example

This sample app publishes messages to Cloud Pub/Sub or states using the HTTP

@dizcology dizcology Sep 25, 2017

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what "Cloud Pub/Sub or states" means.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread iot/http_example/cloudiot.rest.json Outdated
@@ -0,0 +1,279 @@
{

@dizcology dizcology Sep 25, 2017

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this file for?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@gguuss gguuss Sep 26, 2017

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed, the device API was to be exposed as Apiary via device REST discovery.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread iot/http_example/cloudiot_http_example_nodejs.js
description: 'Encryption algorithm to generate the JWT.',
requiresArg: true,
demandOption: true,
choices: ['RS256', 'ES256'],

@dizcology dizcology Sep 25, 2017

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the target user of this sample is expected to be familiar with JWT, or node already prints allowed choices, then please ignore my comment:

It might help to print the allowed choices in the help/description message.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread iot/http_example/cloudiot_http_example_nodejs.js
// messageCount. Telemetry events are published at a rate of 1 per second and
// states at a rate of 1 every 2 seconds.
function publishAsync (messageCount, numMessages) {
const payload = `${argv.registry_id}/${argv.device_id}-payload-${messageCount}`;

@dizcology dizcology Sep 25, 2017

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The publishAsync function in http_client_example.js seems more flexible allowing the user to specify a message argument. Why is the publishAsync function in this file not allowing the same?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@gguuss gguuss Sep 26, 2017

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked in duplicate versions of the same sample, will clean up after dinner.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread iot/http_example/http_client_example.js Outdated
console.log('Publishing to:', path);
console.log('Publishing message:', message);

// TODO: Publish message hurr

@dizcology dizcology Sep 25, 2017

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still need to do this?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@gguuss gguuss Sep 26, 2017

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed extra implementation,

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread iot/http_example/http_client_example.js Outdated

// Publish numMessages messages asynchronously, starting from message
// messageCount.
function publishAsync (bearer, client, messageCount, message, projectId, cloudRegion, registryId, deviceId) {

@dizcology dizcology Sep 25, 2017

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order of arguments is a bit inconsistent:

for this function: (bearer, client, messageCount, message, projectId, cloudRegion, registryId, deviceId)

for getDeviceState in manager.js it is (client, deviceId, registryId, projectId, cloudRegion)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
gguuss added 2 commits September 25, 2017 15:53
@gguuss
Removes extra code and discovery doc
d4ecd50
@gguuss
Add product link to readme, options to yargs.
915d197
gguuss
gguuss commented Sep 26, 2017
View reviewed changes

@gguuss gguuss left a comment

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be difficult to setup tests for because it depends on a lot of components being in place both in order to run the sample as well as being able to measure the sample is working.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gguuss
Merge branch 'master' into iot-snippets
02fa580
@gguuss gguuss removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 26, 2017
gguuss added 5 commits September 26, 2017 12:45
@gguuss
Add license to package.json
562e952
@gguuss
Adds includecode blocks to MQTT / HTTP
9e8af84
@gguuss
Merge branch 'iot-snippets' of https://github.com/GoogleCloudPlatform…
7682821
…/nodejs-docs-samples into iot-snippets
@gguuss
Fix lint
ddc4231
@gguuss
Adds comment on state vs event frequency
930b9fd
@gguuss
gguuss merged commit 5d90464 into master Sep 26, 2017
@gguuss
gguuss deleted the iot-snippets branch September 26, 2017 23:34
This was referenced Dec 23, 2020
[Snyk] Security upgrade @google-cloud/firestore from 0.19.0 to 0.21.0 leejh3224/nodejs-docs-samples#285
Open
[Snyk] Security upgrade @google-cloud/firestore from 0.19.0 to 0.21.0 leejh3224/nodejs-docs-samples#309
Open
This was referenced Sep 6, 2021
[Snyk] Security upgrade @google-cloud/firestore from 0.19.0 to 0.21.0 leejh3224/nodejs-docs-samples#359
Open
[Snyk] Security upgrade @google-cloud/firestore from 0.19.0 to 0.21.0 leejh3224/nodejs-docs-samples#363
Open
This was referenced Jan 12, 2022
[Snyk] Security upgrade @google-cloud/firestore from 0.19.0 to 0.21.0 leejh3224/nodejs-docs-samples#434
Open
[Snyk] Security upgrade @google-cloud/firestore from 0.19.0 to 0.21.0 leejh3224/nodejs-docs-samples#437
Open
This was referenced Feb 10, 2022
[Snyk] Security upgrade @google-cloud/firestore from 0.19.0 to 0.21.0 leejh3224/nodejs-docs-samples#455
Open
[Snyk] Security upgrade @google-cloud/firestore from 0.19.0 to 0.21.0 leejh3224/nodejs-docs-samples#466
Open
NimJay pushed a commit that referenced this pull request Nov 11, 2022
@release-please
chore: release 2.6.0 (#488)
d220ddf
🤖 I have created a release \*beep\* \*boop\*
---
## [2.6.0](https://www.github.com/googleapis/nodejs-kms/compare/v2.5.0...v2.6.0) (2021-08-17)


### Features

* **kms:** add samples for new rng and hmac kms apis ([#487](https://www.github.com/googleapis/nodejs-kms/issues/487)) ([5278a8e](https://www.github.com/googleapis/nodejs-kms/commit/5278a8e62c14fcc5cc02e4bd7b36e68a4ed48b72))


### Bug Fixes

* **deps:** google-gax v2.24.1 ([#489](https://www.github.com/googleapis/nodejs-kms/issues/489)) ([f5e8569](https://www.github.com/googleapis/nodejs-kms/commit/f5e85696de33d8870951d684b491338fc3c029f3))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
ace-n pushed a commit that referenced this pull request Nov 11, 2022
@release-please Ace Nassri
chore: release 2.6.0 (#488)
730aa80
🤖 I have created a release \*beep\* \*boop\*
---
## [2.6.0](https://www.github.com/googleapis/nodejs-kms/compare/v2.5.0...v2.6.0) (2021-08-17)


### Features

* **kms:** add samples for new rng and hmac kms apis ([#487](https://www.github.com/googleapis/nodejs-kms/issues/487)) ([5278a8e](https://www.github.com/googleapis/nodejs-kms/commit/5278a8e62c14fcc5cc02e4bd7b36e68a4ed48b72))


### Bug Fixes

* **deps:** google-gax v2.24.1 ([#489](https://www.github.com/googleapis/nodejs-kms/issues/489)) ([f5e8569](https://www.github.com/googleapis/nodejs-kms/commit/f5e85696de33d8870951d684b491338fc3c029f3))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
ace-n pushed a commit that referenced this pull request Nov 16, 2022
@release-please
chore: release 3.1.0 (#489)
e68cabd
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@ace-n ace-n mentioned this pull request Nov 16, 2022
migrate code from googleapis/nodejs-video-intelligence #2855
Merged
ace-n pushed a commit that referenced this pull request Nov 17, 2022
@release-please Ace Nassri
chore: release 3.1.0 (#489)
f0db7ba
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
unforced pushed a commit that referenced this pull request Nov 17, 2022
@renovate-bot
chore(deps): update dependency @google-cloud/pubsub to v3 (#489)
ec6261d
@unforced unforced mentioned this pull request Nov 17, 2022
migrate code from googleapis/nodejs-security-center #2867
Merged
ahrarmonsur pushed a commit that referenced this pull request Nov 17, 2022
@release-please Ahrar Monsur
chore: release 3.1.0 (#489)
ffe8bee
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@dizcology dizcology dizcology left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@gguuss @dizcology
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.