Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

uart_bridge library

hosihosi Österreich

Hi there!

I'm trying to get uart_bridge library up and running (unfortunately without any luck). I was searching for an example so I can get a clue what I'm doing wrong. Could anyone help me out on this?

Thanks,
Claus

Comments

  • SergeySergey Dublin, Ireland

    If you can follow https://forum.mongoose-os.com/discussion/1464/how-to-ask-questions#latest and describe what is not working for you, that might help to answer.

  • hosihosi Österreich
    edited February 9

    Hi Sergey,

    Sorry, Id din't mean to be rude, I was a little frustrated...

    What I want to do is, using a websocket connection to connect a device with uart on an ESP32 (UART2, Rx pin 13, Tx pin 14, UART works fine), to display the serial output of the device on a webpage (html). At the moment I am able to establish a connection to the device using websocket to uart. For debugging reasons I exchanged the devive with putty (serial). So far everything fine. I can send data from serial putty to the html page (theres a slight problem displaying the data - but thats something completely different I guess). I am using the slighly modified index.html file from websocket chat (https://github.com/cesanta/mongoose/blob/master/examples/websocket_chat/index.html) - I just changed the way the websocket is created: var ws = new WebSocket('ws://' + location.host + ':8910');
    The biggest problem at the moment is, that I always have to reload the html page when I want to send data to the uart! I thought, the connection would stay open and would be able to send multiple messages? Whats interesting is, that the debug output (level 3) doesn't mention a closing event, so i guess it still open, but simply doesn't react on a new message - aka pressing the send button...
    I hope this clarifies and explains my problem.

    Thanks for your time and patience,
    Claus

Sign In or Register to comment.