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

Basic http get example

Hello,

We are working with the nrf 9160 dk.

We need to use internet connectivity to send an http get and post to a remote server.

We want to utilize the NB-IoT modem on the board. 

As it stands now, can get connected to the network but we cannot send a get or post to the remote server.

Kindly let us know if there is a configuration or a example code we can use to achieve this.

Thanks and regards

Parents Reply
  • Hello Hakon,

    Thank you so much for the reply.

    Please find below the results we get;

    errno = 60

    HTTPS client sample started
    Provisioning certificate
    Waiting for network.. OK
    Connecting to google.com
    connect() failed, err: 60

    Please note that we are in siracusa Italy so we only have NB-IoT, we therefore added the config 

    CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y

    to the prj.conf file.

    Kindly help us know what we need to check

Children
Related