This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Connecting nRF9160 to google cloud

Hi, 

I've been trying to connect nRF9160 DK to google cloud by running "google_iot_mqtt" following the directions here https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-connect-nrf91-to-google-cloud and I'm not sure how to edit the Kconfig file as mentioned in README, would you please show mw a sample of how should the Kconfig file look like.

Parents
  • Hi Karma!

    In the blog post all the way at the bottom you can download the project code, which is the code used in the blog post to connect the DK to Google Cloud. The Kconfig file should look like this where you need to insert for instance your Google Cloud project name in the second line.

    config GCLOUD_PROJECT_NAME
        string "Name of the Google Cloud project"
    
    config GCLOUD_REGION
        string "Google cloud region"
    
    config GCLOUD_REGISTRY_NAME
        string "Name of the Google Cloud reigstry of the device"
    
    config GCLOUD_DEVICE_NAME
        string "Name of the device in Google Cloud"
        
    # Include Zephyr's Kconfig
    source "$ZEPHYR_BASE/Kconfig"

    Best regards,

    Heidi

Reply
  • Hi Karma!

    In the blog post all the way at the bottom you can download the project code, which is the code used in the blog post to connect the DK to Google Cloud. The Kconfig file should look like this where you need to insert for instance your Google Cloud project name in the second line.

    config GCLOUD_PROJECT_NAME
        string "Name of the Google Cloud project"
    
    config GCLOUD_REGION
        string "Google cloud region"
    
    config GCLOUD_REGISTRY_NAME
        string "Name of the Google Cloud reigstry of the device"
    
    config GCLOUD_DEVICE_NAME
        string "Name of the device in Google Cloud"
        
    # Include Zephyr's Kconfig
    source "$ZEPHYR_BASE/Kconfig"

    Best regards,

    Heidi

Children
Related