Help with http post application

Hi!

need to create an application that sends text messages to private server, such as ptsv3.com.

Could somebody please help me make this application work?

encountered issues in various libraries, followed by other difficulties that was unable to resolve. Attached are build logs and source code, with warnings about implicit function declarations, 'AF_INET' undeclared, and "fatal error: net/socket.h: No such file or directory."

With warm regards

Parents Reply Children
  • Thanks again, Achim! Yes I have nRF9151 SDK board.

    I will try your suggestion

    kind regards

  • Let me add, it's not only different in "prj.conf", it's also how to start the network (see the original main.c in that sample). But at least your "main" should get called. 

  • And if "never enters main();" means you miss the print in your serial console, then you may need to enable that.

    All in all: maybe you spend some time in Nordic DevAcademy to learn the basics?

  • I placed my main.c source in https_client, here is the output:

    00:00:01.619,201] .[1;33m<wrn> nrf_modem_lib_netif: The modem has detected a reset loop. LTE network attach is now restricted for the next 30 minutes..[0m
    +CEREG: 2,"3204","040E8001",7*** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
    *** Using Zephyr OS v3.7.99-0bc3393fb112 ***
    HTTPS client sample started

    Bringing network interface up
    Provisioning certificate
    Certificate match
    Connecting to the network
    +CGEV: EXCE STATUS 0%MDMEV: RESET LOOP[00:00:01.627,349] .[1;33m<wrn> nrf_modem_lib_netif: The modem has detected a reset loop. LTE network attach is now restricted for the next 30 minutes..[0m
    +CEREG: 2,"3204","040E8001",7

    Why it seems it still uses main.c for https_client? I already erased original main.c, and also erase example.com from all files, but I know "Certificate match" is from https_client, why? I deleted build folder and build again after changed main.c

    What does this "The modem has detected a reset loop. LTE network attach is now restricted for the next 30 minutes" mean? I need to press reset once programmed correct?

    Kind regards

Related