on esp32 cam board using mongoose as client to send websocket data to server,too slow #1820
-
hi, I just on esp32 cam board using mongoose as websocket client to send mjpeg data to server, about 10k data a time, but it sent too slow to a websocket server . about sending less 10k data,used >100 ms , I also tested that from a linux platform ,also using mongoose as websocket client , to send the same data , its normal fast . I am confusing that . Is anyone meet it too ,how to solve it ? thanks! .. ... mg_timer_add(&mgr, 20 , MG_TIMER_REPEAT, timer_fn, &mgr); void loop() { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Unless you absolutely need to broadcast the same data to several consumers (and even so, MQTT would probably be faster by just sending it once...) I would use the connection event handler and send data on |
Beta Was this translation helpful? Give feedback.
-
@scaprile thanks very much ! |
Beta Was this translation helpful? Give feedback.
Unless you absolutely need to broadcast the same data to several consumers (and even so, MQTT would probably be faster by just sending it once...) I would use the connection event handler and send data on
MG_EV_WRITE
https://mongoose.ws/documentation/#events
Besides that, you may be having WiFi (RF) issues.