Microchip® Advanced Software Framework

winc3400/host_app/provisioning/http_content.h File Reference

http_content configuration.

Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.

#include "driver/include/m2m_wifi.h"
#include "wifi_prov.h"
#include "bsp/include/nm_bsp.h"

Macros

#define CERT_FOOTER   "-----END CERTIFICATE-----"
 
#define KEY_FOOTER   "-----END RSA PRIVATE KEY-----"
 
#define WIFI_PASSPHRASE_LEN   M2M_MAX_PSK_LEN
 
#define WIFI_SSID_LEN   M2M_MAX_SSID_LEN
 

Functions

uint32 base64decode (char *src, uint32 len)
 
char * construct_http_response (int cid, char *req, int16_t req_sz, int16_t *sz, wifiProvisionParams *provInfo)
 
uint32 decodeLength (uint8 *buff, uint8 *lenBytes)
 
uint16_t get_content_length (char *req)
 

#define CERT_FOOTER   "-----END CERTIFICATE-----"

Referenced by post_main_page().

#define KEY_FOOTER   "-----END RSA PRIVATE KEY-----"

Referenced by post_main_page().

#define WIFI_PASSPHRASE_LEN   M2M_MAX_PSK_LEN

Referenced by post_main_page().

#define WIFI_SSID_LEN   M2M_MAX_SSID_LEN

Referenced by post_main_page().

uint32 base64decode ( char *  src,
uint32  len 
)
char* construct_http_response ( int  cid,
char *  req,
int16_t  req_sz,
int16_t *  sz,
wifiProvisionParams provInfo 
)
uint32 decodeLength ( uint8 buff,
uint8 lenBytes 
)
uint16_t get_content_length ( char *  req)