cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to password protect the SPWF04S http-server?

Feitze van Zwol
Associate
Posted on April 19, 2018 at 11:53

Hi,

I have an Arduino, which sends measured values to a SPWF04S module. I'm using the built-in http-server to remotely read these values.

Because it is connected to the (semi-)public university wifi network, I was wondering if it was possible to somehow password protect the http server.

I searched the manuals, but I cannot find a built-in option to password protect the http server.

I could of course use javascript or micropython to check for a password, but that works for only one file and the source code is clearly visible. Is there an option I'm overlooking?

#http #spwf04s #password
2 REPLIES 2
Elio Cometti
Senior II
Posted on April 20, 2018 at 15:03

Hi,

User Right Management is not available in HTTP server application.

You may post a form containing an 'authentication string' as value of Output key (that will be passed by WIND:57: to the UART/SPI console or uPython script) to a dynamic web page like input demo. This allow the client to post the credentials to the host/uPython application that will accordingly store the dynamic values in the INPUTSSI buffer. Those values will be returned to the client in a dynamically assembled web page.

Any client would have access to the dynamic web page but only those authenticated by the host application would get dynamic data in the page.

Posted on May 03, 2018 at 19:01

After some more thinking, it seems that basically MQTT is exactly what we are looking for and a much better solution.

I asked this, because our first idea was to build a web crawler to get the data from many 

SPWF04S modules, but that is a bit cumbersome in regards to MQTT.

Thank you for your reply and taking your time replying to this question, I really appreciate it!!