Hi everyone,

1) Problem:

I am trying to transfer high-frequency sensor data (100-200Hz) over MQTT to an android device. As XDK can only transmit 997 bytes at a time over MQTT, this means that I have published data really fast. This is not a problem for the XDK device, however, the client (Android Device) cannot crash due to such a high transfer rate. 

2) Possible solution:

One solution could be to store sensor data into the SD card (file size of approximately 15 MBs) first and later transfer the file to the android device.

3) Question:

So is there any way I can transfer such a file over Wi-Fi?

 

Kind regards,

Salman

 

0 (0 Votes)
RE: Reliable way to transfer file from SD card over Wi-Fi
Answer
9/30/19 12:00 PM as a reply to Muhammad Salman Shaukat.

Hello Salman,

unfortunatelly it is not really possible to transfer a whole file over WiFi using the XDK.

If your Android Device is not able to process the sensor data with the required data rate, i would recommend to use an additional MQTT client (maybe running on a computer) to process and store the data. From your computer you have more and easier ways to transfer files to an Android Device.

Best regards,

Christian

0 (0 Votes)