...
\Micrium\Software\uC-HTTPs
\Micrium\Software\uC-TCPIP
\Micrium\Software\uC-<OS-Version>
...
The http-s_instance_cfg.c/.h
pair of files, defines the configuration structure for an HTTP server’s instance (see µC/HTTPs Instance Configuration for more details). If your application requires a secured HTTP server instance, the http-s_instance_secure_cfg.c/.h
pair of files should be used as template instead.
Modifying the
...
HEAP memory configuration
The µC/HTTPs Module uses additional heap memory space. Therefore, it is possible that your sample application will require more allocation of heap memory. If ti is the case, you can increase the value of the #define LIB_MEM_CFG_HEAP_SIZE inside the lib_cfg.h file HEAP memory size of your sample project. You can , refer to section µC/LIB Memory Management Configuration for more details on the heap usage of the µC/HTTPs Module.
Adding µC/HTTPs application function
Before running the sample application, you will need to add the new funtion, AppInit_HTTPs()
function call, in your app.c application file to initialize and setup the µC/HTTPs module. Section µC/HTTPs Mocule Initiaziation ExampleSample Application gives an example of the main application task inside which the AppInit_HTTPs()
function will be calledhow to initialize µC/HTTPs and start a web server instance.
This code example will need to be modified in accordance with your project setup. For example,
Adding Additional includes
...
#include <Source/http-s.h>
#include <http-s_cfg.h>
#include <http-s <FS/uC-FS-V4/net_fs_static_cfgv4.h> (optional if another file system uC/FS is used)
#include <http <FS/Static/http-s_(instance_name)_cfg.h> (...and other instance configuration filesfs_static.h> (optional if no File system is available in the project)