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

nrf_socket og nrf_close

When I have opened a nrf socket with nrf_socket to extract GPS data, when the GPS acquisition phase is over, I want to close the socket, since I'm turning the GPS off. calling nrfclose with the socket handle as input parameter,, returns -1, normally an indication that somthing has gone wrong. When I try to reopen the socket again, the open socket command also fails. Please advice on how to proceed.  

Parents Reply
  • Hi again

    I've tried different approaches to this,

    1. closing the socket before switching to LTE mode
      1. Before AT+CFUN=4
      2. After AT+CFUN=4
    2. Emptying the socket buffer before closing the socket
    3. Keeping the socket open between gps activations

    , but no success so far. A single shot GPS has very little value, so I would appreciate some input here. THis is by now quite a show-stopper. 

Children
No Data
Related