Hey Particlers,
I was wondering if anyone has managed to or knows where I could find out about setting up and serving the IP (e.g. 192.168.0.1/public-key) over HTTPS.
With my amateur knowledge I’ve found this header file which said it the API for the HTTP/HTTPS server.
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @file
*
* API for the HTTP / HTTPS Web server
*
* Web pages and other resources are provided via an array which gets passed as an argument when starting the web server.
* The array is constructed using the START_OF_HTTP_PAGE_DATABASE() and END_OF_HTTP_PAGE_DATABASE() macros, and optionally the ROOT_HTTP_PAGE_REDIRECT() macro
* Below is an example of a list of web pages (taken from one of the demo apps)
*
* START_OF_HTTP_PAGE_DATABASE(web_pages)
* ROOT_HTTP_PAGE_REDIRECT("/apps/temp_control/main.html"),
* { "/apps/temp_control/main.html", "text/html", WICED_RESOURCE_URL_CONTENT, .url_content.resource_data = &resources_apps_DIR_temp_control_DIR_main_html, },
* { "/temp_report.html", "text/html", WICED_DYNAMIC_URL_CONTENT, .url_content.dynamic_data = {process_temperature_update, 0 }, },
* { "/temp_up", "text/html", WICED_DYNAMIC_URL_CONTENT, .url_content.dynamic_data = {process_temperature_up, 0 }, },
But I’m a tad stuck where to go next. Any help, advice or examples would be greatly appreciated.
Thanks in advance!
L
It is not possible to use the SoftAP web server in TLS/SSL (https) mode. It’s not enabled because it would not fit on the STM32F205 flash on the Photon and P1.
Hi @rickkas7 ,
Thanks for the reply! Are there any Particle devices that support HTTPS using SoftAP?
Could you also let me know what variation of the STM32F205 is in use?
https://www.st.com/content/st_com/en/search.html#q=STM32F205-t=products-page=1
How much memory does it use up and is the device missing?
Thanks!
The Photon and P1 are the only devices that support SoftAP. They contain a STM32F205RGY6 processor.
The only way you could fit TLS/SSL SoftAP support on the device would be to remove all of the Particle functionality and treat it as a bare BCM43362 with STM32F205. That would be difficult and at that point, you’d be better off just using an ESP32.
system
Closed
August 20, 2020, 12:31am
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.