We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b61580b commit 5639c54Copy full SHA for 5639c54
1 file changed
iot/http_example/cloudiot_http_example.js
@@ -73,7 +73,7 @@ var argv = require(`yargs`)
73
type: 'number'
74
},
75
httpBridgeAddress: {
76
- default: 'cloudiot-device.googleapis.com',
+ default: 'cloudiotdevice.googleapis.com',
77
description: 'HTTP bridge address.',
78
requiresArg: true,
79
type: 'string'
@@ -105,7 +105,7 @@ const devicePath = `projects/${argv.projectId}/locations/${argv.cloudRegion}/reg
105
// The request path, set accordingly depending on the message type.
106
const pathSuffix = argv.messageType === 'events'
107
? ':publishEvent' : ':setState';
108
-const urlBase = `https://${argv.httpBridgeAddress}/v1beta1/${devicePath}`;
+const urlBase = `https://${argv.httpBridgeAddress}/v1/${devicePath}`;
109
const url = `${urlBase}${pathSuffix}`;
110
// [END iot_http_variables]
111
0 commit comments