This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AMIC110: HTTP autentication not working

Part Number: AMIC110

Tool/software: TI-RTOS

There was a post from 2016 (e2e.ti.com/.../514649)which was never solved.

Because I had the same problem, I will tell how to solve ;)

The solution is, don't put this code to "AddWebFiles()". Better is to span a new task, let it wait until everyhting is initialized. Than add the Username and Password to the configuration.

So here is my code:

void meinTest(void) {

    volatile Handle hCfg;
    volatile int valid;
    CI_ACCT CA

    hCfg =  CfgGetDefault();

    // Creates the Authorization Realm 1
    //valid = CfgAddEntry(hCfg, CFGTAG_SYSINFO, CFGITEM_SYSINFO_REALM1, 0, 7, (UINT8 *)"REALM1", 0);
    strcpy(CA.Username, "Stefan");
    strcpy(CA.Password, "geheim");
    CA.Flags = CFG_ACCTFLG_CH1;     // Adds the user the the Realm 1
    valid = CfgAddEntry(hCfg, CFGTAG_ACCT, CFGITEM_ACCT_REALM, 0, sizeof(CI_ACCT), (UINT8 *)&CA, 0);
}