Hello,
How do I enable/disable the internal webpage for the CC3100? this is my version info: v1.0.1.15-2.14.0.0.
I've tried accessing it using its assigned IP but the page doesn't load.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
How do I enable/disable the internal webpage for the CC3100? this is my version info: v1.0.1.15-2.14.0.0.
I've tried accessing it using its assigned IP but the page doesn't load.
Hello Wilmer,
To disable the HTTP server you can use the function sl_NetAppStop( appID). You can find these functions explained in section 11.11.1 of the CC3100/CC3200 Simple Link User Guide
By default the simplelink.net comes enabled. To access by IP your device must be in Station mode, if your device is in AP mode use the domain name.
Hope this helps,
Rogelio
I tried enabling the HTTP server using
My apologies, I tried to enable after having stoped the SL driver. It's working now. Thanks
Also, is there an API I can use to determine if this service or any other is up. We've seen instances where this service is available even though we explicitly disable it.
I've tried to use
I've tried reading the "/sys/mode.cfg" file. The 25th byte in there seems to be set when the http server is enabled. That's currently the only option for checking the status of this service that works for me. Is there a better option?
There is not an API that returns the enabled status of the server. I am assuming you are looking for something like the following.
Also I want to confirm that you find the https server still enabled after calling the sl_NetAppStop command?
For more information regarding APIs I suggest checking the SimpleLink host driver
Kind Regards,
Rogelio
I saw this in that link you shared:
Getting active applications:
Get active applications for active role. return value is mask of the active application (similar defines as sl_NetAppStart):
_u32 AppBitMap;
_u8 pOptionLen = sizeof(AppBitMap);
sl_NetAppGet (SL_NETAPP_STATUS, SL_NETAPP_STATUS_ACTIVE_APP, &pOptionLen, (_u8 *)&AppBitMap);
I just want to make sure that the internal webpage or the port it uses is not accessible
And to answer your question, I am seeing a case where sl_NetAppStop(SL_NET_APP_HTTP_SERVER_ID) is being called and returns successfully but I'm still able to open the webpage
My application is using MQTT, should I wait until all other initialization is complete before calling sl_NetAppStop(SL_NET_APP_HTTP_SERVER_ID)?
Does calling sl_NetAppStop(SL_NET_APP_HTTP_SERVER_ID) if the service is down already overwrite the CC3100 flash?