2018-04-19 02:53 AM
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 #password2018-04-20 06:03 AM
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.
2018-05-03 12:01 PM
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!!