Help with http post to private server

Hi!

I'm attempting to run the application from this URL, but nothing appears on the serial console, and I don't see any posts on the toilet website.

Could you help me with this? I've spent too many months on http_client and https_client with no results.

My set up:
Updated Windows 11 64-bit.
Board: DK nRF9151.
SDK: 2.8.0

I don't know why there is no output on serial terminal, but I debugged the app and there is an error at row # 87 with code:

int err = getaddrinfo(HTTP_HOST, NULL, NULL, &res);
I got error -11

I included application files and a build-log in the zip file.

Please help!
With kind regards


4705.http post.zip

Parents
  • Hi!

    I looked for error -11 and it means: 

    NRF_EAGAIN 11: "Resource unavailable, please try again".

    What resource would it be, please? HTTP_HOST? I already placed "ptsv3.com", there and got the same result, any hints?


    With warm regards

  • Hi,

    I am not able to build your project for nrf9151-dk in NCS v2.8.0. Can you verify that you can build the project successfully?

    Best regards,
    Dejan

  • Hi Dejan,

    last time, I sent you the build log in the zip file to confirm that it was successfully built; this time, I successfully built the app again, and I am providing you with the application code, the build log, images showing the problem tab, and the terminal tabs used when programming.

    I was able to debug the application, identify the row number where the error occurred, and obtain the error number.

    Also, I've included a link to an application that one of your coworkers upload to this forum, so you may download it and build it your own.

    What challenge did you encounter when building the application? Maybe I can help you, even though you are thousands of times more capable of fixing it than I am. Also, maybe you can use the hex file in the build folder.

    I've spent more than a year attempting to adapt https_client or http_client apps to send a text message to a private server by http post; at first, I bought a Sparkfun board, but after 10 or 11 months of fails, I gave up and bought a Nordic board,but, with little progress since.

    I am not even making a application of my own, just trying to make an Nordic sample work in a private server.

    Please help me!

    With kind regards

    8625.http post.zip

Reply
  • Hi Dejan,

    last time, I sent you the build log in the zip file to confirm that it was successfully built; this time, I successfully built the app again, and I am providing you with the application code, the build log, images showing the problem tab, and the terminal tabs used when programming.

    I was able to debug the application, identify the row number where the error occurred, and obtain the error number.

    Also, I've included a link to an application that one of your coworkers upload to this forum, so you may download it and build it your own.

    What challenge did you encounter when building the application? Maybe I can help you, even though you are thousands of times more capable of fixing it than I am. Also, maybe you can use the hex file in the build folder.

    I've spent more than a year attempting to adapt https_client or http_client apps to send a text message to a private server by http post; at first, I bought a Sparkfun board, but after 10 or 11 months of fails, I gave up and bought a Nordic board,but, with little progress since.

    I am not even making a application of my own, just trying to make an Nordic sample work in a private server.

    Please help me!

    With kind regards

    8625.http post.zip

Children
No Data
Related