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
  • Hi,

     

    I tested the sample with NB1 and M1, and it runs as it should at my end:

    *** Booting Zephyr OS build v2.1.99-ncs1  ***
    HTTPS client sample started
    Provisioning certificate
    Waiting for network.. OK
    Connecting to google.com
    Sent 64 bytes
    Received 903 bytes
    
    >        HTTP/1.1 200 OK
    
    Finished, closing socket.
    

    Do other samples also behave like this? Ie: Can you try to run mqtt_simple and see if it also hangs in the connect() procedure?

     

    Kind regards,

    Håkon

Children
Related