Pushing beacon data to WebServer

User avatar
arunbm123
Posts: 96
Joined: Fri Feb 23, 2018 5:36 am

Pushing beacon data to WebServer

Postby arunbm123 » Tue Mar 05, 2019 2:02 pm

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

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: Pushing beacon data to WebServer

Postby PeterR » Fri Mar 08, 2019 2:01 pm

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.
& I also believe that IDF CAN should be fixed.

User avatar
arunbm123
Posts: 96
Joined: Fri Feb 23, 2018 5:36 am

Re: Pushing beacon data to WebServer

Postby arunbm123 » Sat Mar 09, 2019 4:15 am

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.

Who is online

Users browsing this forum: No registered users and 111 guests