knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.8k stars 1.47k forks source link

publish speed help. #326

Open reeder13 opened 6 years ago

reeder13 commented 6 years ago

Hello, I am currently creating a sensors system and am using an ESP8266 module to send data to IBM's blumix iot platform. Currently each publish call takes around 60ms to complete. However i would like to send sensor data at or below 10ms intervals. Is this possible with MQTT and your library? If so would you be able able to help me go about doing this?

This is for a research project i am currently doing so any help would be greatly appreciated.

knolleary commented 6 years ago

I've never done any benchmarking of the code so have no definitive answer for your. Would need to profile the code to see where time is spent in the publish path; no idea how to go about that.