HTTPS_Curl_Multi example not working when Azure Sphere is not connect to the debugging interface

Frank Hsieh 96 Reputation points
2022-08-11T05:35:32.523+00:00

Hi,
I've developed with the USI Azure Sphere Dev Kit Board, and the installed SDK version is 21.10.
I'm running with the HTTPS_Curl_Multi example code, to meet the requirement, I change the URL to the internal server, and set curl_easy_setopt with HTTP Post option.
The board works well when debuging with the Visual Studio.
230283-image.png

But when the board stand alone running without debugging, the HTTP Post cannot send to the server.
230209-image.png
Another question is why the example code can work without curl_multi_perform? In libcurl website example, it seems need curl_multi_perform to transfer.

Do you have any ideas?

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
156 questions
0 comments No comments
{count} votes

Accepted answer
  1. AshokPeddakotla-MSFT 27,036 Reputation points
    2022-08-11T17:15:27.113+00:00

    @Frank Hsieh Could you please share more details? You have mentioned, "But when the board stand alone running without debugging, the HTTP Post cannot send to the server." Do you also see any specific errors?

    Are you following this documentation? https://learn.microsoft.com/en-us/samples/azure/azure-sphere-samples/https-curl-multi/

    Have you enabled application development? if you have not already done so, you can enable by entering the azsphere device enable-development command at the command prompt.


0 additional answers

Sort by: Most helpful