Start to work on networking
This commit is contained in:
11
esp32_device/main/unsecure_api.c
Normal file
11
esp32_device/main/unsecure_api.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include "unsecure_api.h"
|
||||
#include "constants.h"
|
||||
#include "esp_http_client.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
char *unsecure_api_get_secure_origin()
|
||||
{
|
||||
const char *url = BACKEND_UNSECURE_URL "/secure_origin";
|
||||
return strdup(url);
|
||||
}
|
Reference in New Issue
Block a user