-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic questions #4
Comments
i would be OK with opening each of those as separate issues in the future, so i can address them independently. No need to do anything, just a note for the future, it's generally easier to handle small issues than large ones that have unrelated parts.
|
@marcidy Thank you very much for the all clarification, I appreciate so much! |
Hello @marcidy
Well, first congratulations for the great project. I'm starting to use it and I liked so much.
1. How is possible to add
Content-Type
on the header? Actually allContent-Type
response istext/html
I would like to add the correctContent-Type
to each static file type.Actually I'm doing this routes on file
web.py
:That routes works fine, but if I reach address http://192.168.43.143/static/img1.jpg will not show the image, just the binary data, because
Content-Type
istext/html
2. Just a simple bugfix in the doc: In the https://github.com/marcidy/micropython-uasyncio-webexample#phone-home say: "change
phone_home
inws.py
" but the function name iscall_home
insteadphone_home
.3. My goal is to have just one static page, like as the example
page.htm
, and to do everything in just one page, usingJavaScript
+HTML
, and communicate with the ESP32-S3 runningMicroPython
, just usingWebSocket
, to send and receive data. Well, the question is: do you think that is a good idea to put all interface in just one page? I mean, will be a large page, because I will to do many tabs, many configurations fields, and will have a tab just for monitoring data from sensors, where will receive data fromMicroPython
when a event happen there, and of course, without request, just waiting a event onWebSocket
that will run as a persistent connection. That is what I really want, I would like just to know if that is a really a good idea.4. Actually I tested your
WebSocket
example on Firefox, Chromium, Chrome and Opera, and works very well in everyone. My fear is if I develop a complete application web usingWebSocket
and in the future (in new versions of browsers) myWebSocket
application stop to work. Is there that possibility?5. I would like so much that in the future is possible to use the
WebSocket
overSSL
, like as this feature request #2. So, for now, I will to do everything using your project, withoutSSL
, and whenuasyncio
start to supportSSL
(as you commented in #2), I think that you will need do do just few changes in this project to supportSSL
onWebSocket
. Is that correct, or will be need big changes in this project to support that?Thank you in advance!
The text was updated successfully, but these errors were encountered: