B4R Question Remote file access, download

Mostez

Well-Known Member
Licensed User
Longtime User
Hi,
I'm designing a voltage readout logger, data stored on SD card. I want to access log file remotely for example from PC to download stored data(request send from PC to Arduino, user should open download dialog, select desired logger by IP, then download file)

I think something like this would be so great to make, please take a look at this tutorial. but have no luck with C code, how can I make it work with B4R.

Thanks
 
Last edited:

rbghongade

Active Member
Licensed User
Longtime User
Dear friends,
Is it possible to upload a file from PC/android device to sd card connected to arduino / wemos via Wi-Fi ?
If so please provide a demo.
 
Upvote 0

rbghongade

Active Member
Licensed User
Longtime User
Dear Erel,
Tried to use WeMos as server in AP mode. B4J code connects correctly, sends command , B4R receives command and lists the files on log, but at the B4J end it always lands in AStream_Error sub and hence logs "connection closed".
I have attached my files for your perusal.
Since there is no issue of SPI lines ,I have modified the code accordingly.
 

Attachments

  • WEMOS_B4R_FILE_TRANSFER.zip
    1.5 KB · Views: 236
  • B4J_FILE_TRANSFER.zip
    3.2 KB · Views: 258
Upvote 0

rbghongade

Active Member
Licensed User
Longtime User
Dear Erel ,
That worked great! Now how can I do the reverse file transfer. File on PC to be uploaded to SD card!
 
Upvote 0

rbghongade

Active Member
Licensed User
Longtime User
I managed to create a file on SD card , instead of transferring the file with MQTT since the file is very small 150 bytes only!
Thanks Erel!
 
Upvote 0
Top