jczic / MicroWebSrv

A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)
https://github.com/jczic/MicroWebSrv
MIT License
641 stars 116 forks source link

exc_info not implemented on ESP32 #7

Closed rdagger closed 6 years ago

rdagger commented 6 years ago

sys.exc_info is not implemented for the ESP32 yet. It is used in several modules in this repo. Would it be OK to replace them with Exception.message such as:

except :
    print("MicroWebSocket : Error on accept callback (%s)." % exc_info()[1])

replace with

except Exception as e:
    msg = e.message if hasattr(e, 'message') else str(e)
    print("MicroWebSocket : Error on accept callback (%s)." % msg)
jczic commented 6 years ago

Yes, I'll fix that :)

jczic commented 6 years ago

I've removed the usage of exc_info :)

rdagger commented 6 years ago

Thanks!
I'm making a series of ESP32 MicroPython tutorials on YouTube.
Is it OK if I include your MicroWebSrv library in one of my videos?

jczic commented 6 years ago

Thanks to you ! Yes, no problem, it's very cool !

Do you have already some videos to see ? :)

rdagger commented 6 years ago

So far, I've made 2 videos. Here's a link.

jczic commented 6 years ago

Good job 👍

jczic commented 6 years ago

Hello, do you have made your video with MicroWebSrc ? :) 2 news libs for querying HTTP(S) :

https://github.com/jczic/MicroWebCli AND https://github.com/jczic/MicroRESTCli

If you want to try on your ESP32 :)

rdagger commented 6 years ago

I did record the video. I just need to finish the video editing. I'll probably post this week. Those libraries look great!

rdagger commented 6 years ago

I posted the video tutorial.

jczic commented 6 years ago

Hi,

Yeah, I've seen, it's very cool !! :)

2017-10-15 23:48 GMT+02:00 rdagger notifications@github.com:

I posted the video tutorial https://youtu.be/xscBwC1SrF4.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/7#issuecomment-336744071, or mute the thread https://github.com/notifications/unsubscribe-auth/AAegLBGwigHGu4NzaS-YcNV09ZxbAZJaks5ssn2RgaJpZM4PSs9h .

--

Sincèrement,

Jean-Christophe Bos jczic.bos@gmail.com jczic.bos@gmail.com

jczic commented 6 years ago

How many RAM have you in your esp32 ? My last OEM pycom modules have 4 Mo : excellent for SSL, multi-threading etc...!

2017-10-16 21:46 GMT+02:00 Jean-Christophe Bos jczic.bos@gmail.com:

Hi,

Yeah, I've seen, it's very cool !! :)

2017-10-15 23:48 GMT+02:00 rdagger notifications@github.com:

I posted the video tutorial https://youtu.be/xscBwC1SrF4.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/7#issuecomment-336744071, or mute the thread https://github.com/notifications/unsubscribe-auth/AAegLBGwigHGu4NzaS-YcNV09ZxbAZJaks5ssn2RgaJpZM4PSs9h .

--

Sincèrement,

Jean-Christophe Bos jczic.bos@gmail.com jczic.bos@gmail.com

--

Sincèrement,

Jean-Christophe Bos jczic.bos@gmail.com jczic.bos@gmail.com

rdagger commented 6 years ago

4MB flash, memory-mapped to the CPU code space. I think there is an additional 520K of integrated SRAM. Here is a link to the board:. https://wiki.wemos.cc/products:lolin32:lolin32

jczic commented 6 years ago

Hello rdagger :)

After WebSockets in MicroWebSrv (https://microwebsrv.hc2.fr) you can see an another microPython/ESP32 lib : https://github.com/jczic/MicroMLP (https://micromlp.hc2.fr) This is more difficult ;)

Have a good day !

Le mer. 18 oct. 2017 à 22:29, rdagger notifications@github.com a écrit :

4MB flash, memory-mapped to the CPU code space. I think there is an additional 520K of integrated SRAM. Here is a link to the board:. https://wiki.wemos.cc/products:lolin32:lolin32

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/7#issuecomment-337718144, or mute the thread https://github.com/notifications/unsubscribe-auth/AAegLI9Cb_ohoVLV-DK5LOZy5Omt7yC-ks5stl-ZgaJpZM4PSs9h .

--

Sincèrement,

rdagger commented 6 years ago

@jczic Very impressive work! Thanks.

jczic commented 4 years ago

Hello rdagger :)

Do you remember microWebSrv and your great video on it? I released a fully new version (v2.0) of my web server here : github.com/jczic/MicroWebSrv2. Open source MIT, fully asynchronous, more robust, more fast and more efficient! It is delivered with a good documentation.

Thank you for your support and feedback. ☺️

Jean-Christophe Bos

Le lun. 20 août 2018 à 18:56, rdagger notifications@github.com a écrit :

@jczic https://github.com/jczic Very impressive work! Thanks.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/7#issuecomment-414387629, or mute the thread https://github.com/notifications/unsubscribe-auth/AAegLAWXuoEXaOUwcYwwkjHvAfUVIw04ks5uSuofgaJpZM4PSs9h .

--

Sincèrement,

rdagger commented 4 years ago

That's great! I look forward to trying it out. I linked the new repo on my video and website. Thanks.

jczic commented 4 years ago

Oh thank you! I hope you will like it :)

Have a great day!

Le mer. 23 oct. 2019 à 06:21, rdagger notifications@github.com a écrit :

That's great! I look forward to trying it out. I linked the new repo on my video and website. Thanks.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/7?email_source=notifications&email_token=AAD2ALDJG6ZNNKXPY6UZECDQP7GM5A5CNFSM4D2KZ5Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB775UY#issuecomment-545259219, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD2ALBPCZZ2TGN5DK5XX7TQP7GM5ANCNFSM4D2KZ5QQ .

--

Sincèrement,