Share via

Azure RTOS webserver, CGI callback table

Brian Johansen 26 Reputation points
2021-03-23T14:35:38.067+00:00

I am new to Azure RTOS, it seems like a very nice package with a lot of built-in features.
I am especially looking into the webserver part of Netx duo.
From the examples I have been able to find, it seems that the implementation of the webserver is very low level.
No API support for separating html files and dynamic data being inserted into them while they are being populated and sent back to the client browser.
I have seen the use of registering callback functions for special tags in the html code, to solve this.
Azure RTOS is a mature product, maybe I am looking in the wrong places ?
Best regards Brian

Eclipse ThreadX
Eclipse ThreadX

An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.

0 comments No comments

Answer accepted by question author

Scott Azure RTOS 4,051 Reputation points
2021-03-23T19:00:14.53+00:00

Hi Brian,

You are correct, the only webserver functionality we have is in https://github.com/azure-rtos/netxduo/blob/master/addons/web/nx_web_http_server.c. It's very simple.

For more rich features, check out our partner https://realtimelogic.com/products/

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Brian Johansen 26 Reputation points
    2021-03-29T06:10:25.68+00:00

    Hi Scott,

    Thanks for you answer on this subject.
    Realtimelogic advocates making SPA's (Single Page Applications using websockets) especially when also wanting to leverage TLS.
    I guess this makes sense due to the overhead added by TLS in the connection establishment, and the fact that browsers tend to open multiple connection
    to the device. I am using STM32F207/407's microcontrollers in my projects, and although they are quite powerfull, they are still limited in regards to RAM.

    So far I have been using a competing stack (without SSL), and it has worked well.
    I am trying to evaluate if it makes sense to switch over to Azure RTOS, so any comments are very welcome ?

    Aside from Realtimelogic, does Azure RTOS have a similiar solution as a payed add-on ?

    Thanks

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.