Skip to content

Commit 5639c54

Browse files
authored
Updates to v1 base URI (GoogleCloudPlatform#569)
1 parent b61580b commit 5639c54

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

iot/http_example/cloudiot_http_example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ var argv = require(`yargs`)
7373
type: 'number'
7474
},
7575
httpBridgeAddress: {
76-
default: 'cloudiot-device.googleapis.com',
76+
default: 'cloudiotdevice.googleapis.com',
7777
description: 'HTTP bridge address.',
7878
requiresArg: true,
7979
type: 'string'
@@ -105,7 +105,7 @@ const devicePath = `projects/${argv.projectId}/locations/${argv.cloudRegion}/reg
105105
// The request path, set accordingly depending on the message type.
106106
const pathSuffix = argv.messageType === 'events'
107107
? ':publishEvent' : ':setState';
108-
const urlBase = `https://${argv.httpBridgeAddress}/v1beta1/${devicePath}`;
108+
const urlBase = `https://${argv.httpBridgeAddress}/v1/${devicePath}`;
109109
const url = `${urlBase}${pathSuffix}`;
110110
// [END iot_http_variables]
111111

0 commit comments

Comments
 (0)