-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google IOT Core get device Nodejs client getClient initialization return value problem #1579
Comments
@hongalex Could you have a look at this IoT issue? Thanks |
@hongalex Can you help me see my problem |
I think the main issue here is that Since this isn't an issue with the samples themselves, I'm marking this issue as closed. If you continue to experience issues, I recommend bringing your question to one of the forums described here: https://cloud.google.com/support/docs/community Many members of the GCP community---including Google employees and other experts---help out on those forums. |
@hongalex Thank you for your answer. Like you described, google.discoverAPI (discoveryUrl) returns an object. Promise, I did n’t understand what this data is, but I passed const client = getClient ('riltmw025tool-2019-21396a54b9be.json'); passed it to the Google API I need to call, such as: listDevicesForGateway, then this client value Passed to listDevicesForGateway as the client, always accessing client.projects.locations.registries.devices.list returns no data |
Why does client.projects.locations.registries.devices.list not return data? |
As mentioned earlier, this is not the proper place to raise this question. The issue tracker for this repository is only for sample related issues. If you require assistance debugging your code, please post your question on StackOverflow and the community there (including myself) should be better able to help you. Thanks! |
@hongalex Okay, thank you. |
Hello, I have configured the service credential JSON, and import it under the project main file. The data read by this API is always empty. I do n’t know where I wrote the problem. What I want to achieve is through the new Google v1-client.projects.locations.registries.devices.list to get the API, but one encountered this problem, the following is my code:
The text was updated successfully, but these errors were encountered: