Page 1 of 1

Pushing beacon data to WebServer

Posted: Tue Mar 05, 2019 2:02 pm
by arunbm123
hello All,

My application collects Beacons Advertisements and does http Post to send them to web Server.

But the beacon data is coming at high speed and http Post is not capable to handing this data, The app crashes after 20minitues

I am using Queue to collect data with 2000 items

I would like to know Any other technique

Re: Pushing beacon data to WebServer

Posted: Fri Mar 08, 2019 2:01 pm
by PeterR
1) Web socket.
2) Possibly MQTT (which uses Web Sockets)
3) Propriety TCP (would require an application on your server)

There is a lot more handshaking with POST/GET than websockets. Its the latency and round trips which kills and the transaction ain't over until...etc.
Websockets allow you to stream and so as long as the average bandwidth is ok.

Still, I do not understand why you crash.

Re: Pushing beacon data to WebServer

Posted: Sat Mar 09, 2019 4:15 am
by arunbm123
hello Peter,

I was using http_client to post data to web server.

Bluetooth data is coming at high speed.
I am using Queue with 1000Items to collect bluetooth data. This Queue gets filled in no time.Then I increased t0 2000

But the time esp does one Post, Bluetooth data would pile up.. and eventually crash.
Now I switched to MQTT.

How do I handle high speed data coming...
I am send all data to xQueue but how many Items do I need to configure i am not understanding.