Microchip® Advanced Software Framework

winc1500/host_app/provisioning/http_content.h File Reference

http_content configuration.

Copyright (c) 2018 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-----"
#define KEY_FOOTER   "-----END RSA PRIVATE KEY-----"
#define WIFI_PASSPHRASE_LEN   M2M_MAX_PSK_LEN
#define WIFI_SSID_LEN   M2M_MAX_SSID_LEN

uint32 base64decode ( char *  src,
uint32  len 
)

References b64_table, buf, c, i, j, and len.

Referenced by post_main_page().

char* construct_http_response ( int  cid,
char *  req,
int16_t  req_sz,
int16_t *  sz,
wifiProvisionParams provInfo 
)
uint32 decodeLength ( uint8 buff,
uint8 lenBytes 
)

References i, and length.

Referenced by post_main_page().

uint16_t get_content_length ( char *  req)

References get_token_value().

Referenced by construct_http_response().