We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I would like to suggest subtle change to rl_net_lib.h file - namely, HTTP_CFG structure. Currently, it is declared as const and that prohibits any runtime changes of it. We have an application, where HTTP port can be choosen from the setup. This is necessary when our device is in the local network where another HTTP server is already running on another machine so NAT router can't assign 80 to two devices at the same time...
At the moment, we use local copy if rl_net_lib.h modified to our needs,but I guess it would make sense to remove that const declaration. That way default web-password can also be changed during run-time.
Hello Dejan, thank you for letting us know your recommendation.
But I need to ask you to you to forward any such ideas or recommendations to our Support-Address: support.intl@keil.com
We then will log your mail into our system to create a ticket, which is required to generate a corresponding request to our Engineering Team.
Thank you and best regards, Ralf
R.Kopsch Senior Applications Engineer ARM Germany GmbH
rl_net_lib.h is not a public API, but internal network library header file. It's content will change in the future.
In the new Network Dual Stack library, we have added several service control functions to start or stop the service, to change the port number, login credentials etc.
For the Web server, the following control functions are added:
extern netStatus netHTTPs_Start (void); extern netStatus netHTTPs_Stop (void); extern bool netHTTPs_Running (void); extern uint16_t netHTTPs_GetPort (void); extern netStatus netHTTPs_SetPort (uint16_t port); extern const char *netHTTPs_GetUsername (void); extern netStatus netHTTPs_SetUsername (const char *username); extern const char *netHTTPs_GetPassword (void); extern netStatus netHTTPs_SetPassword (const char *password); extern bool netHTTPs_LoginActive (void); extern netStatus netHTTPs_LoginOnOff (bool login);
New API functions are documented here:
www.keil.com/.../group__ws__user__api.html
I believe this extended API covers also your needs.
Thanks for pointing it out. I suppose in the future only dual-stack will be supported and current one will be phased out?
Yes, current Network stack version 6 will be retired. Network Dual Stack is version 7.