From v4.0 to v4.1
With Sming version 4.1 there are some backwards incompatible changes. This page is provided to help with migrating your applications.
In order to allow multiple SSL adapters and seamless integration the library code had to be refactored and that introduced some breaking changes.
Detailed documentation can be found in SSL: Secure Sockets Layer.
See SSL: Upgrading for a migration guide.
The MultipartParser component has been decoupled from the framework and converted into a Library. In the process, the former config option ENABLE_HTTP_SERVER_MULTIPART has been removed. Therefore, in your components.mk, replace:
ENABLE_HTTP_SERVER_MULTIPART := 1
ARDUINO_LIBRARIES += MultipartParser
Also, the body parser for handling HTTP requests of content-type multipart/form-data must now be registered explicitly by the application code:
#include <MultipartParser.h> HttpServer server; ... server.setBodyParser(MIME_FORM_MULTIPART, formMultipartParser);