Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
base/net/web-net-query.c
- Committer:
- andrewboyson
- Date:
- 2021-01-10
- Revision:
- 147:ea6f647725a1
- Parent:
- base/clock/web-web-query.c@ 131:a9793a9721c7
- Child:
- 153:eaee18d970c4
File content as of revision 147:ea6f647725a1:
#include <string.h>
#include "http.h"
#include "nr.h"
void WebNetQuery(char* pQuery)
{
while (pQuery)
{
char* pName;
char* pValue;
pQuery = HttpQuerySplit(pQuery, &pName, &pValue);
int value = HttpQueryValueAsInt(pValue);
if (HttpSameStr(pName, "name-to-resolve"))
{
strncpy(NrTest, pValue, NR_NAME_MAX_LENGTH);
}
if (HttpSameStr(pName, "request-AAAA"))
{
NrMakeRequestForAddress6FromName(NrTest);
}
if (HttpSameStr(pName, "request-A"))
{
NrMakeRequestForAddress4FromName(NrTest);
}
}
}