Search found 8 matches
- Fri Jan 20, 2023 6:30 am
- Forum: ESP32 Arduino
- Topic: [SOLVED] Question about reading and writing to the same sd card simultaneously
- Replies: 2
- Views: 1796
Re: Question about reading and writing to the same sd card simultaneously
There's not really any benefit to having this simultaneous, since there is only one pipeline to the hardware, and lots of downside. So, rather than shoehorning into "simultaneous", work on making the process asynchronous, and then put a mutex on the sd access. This means you need to have a storage ...
- Thu Jan 19, 2023 1:55 pm
- Forum: ESP32 Arduino
- Topic: [SOLVED] Question about reading and writing to the same sd card simultaneously
- Replies: 2
- Views: 1796
[SOLVED] Question about reading and writing to the same sd card simultaneously
Hi all, I have a code that takes measurements from a microphone 8 times in a second, those 8 measurements get averaged and a final value for a second is calculated. Then the calculations get appended as a line to a text file in the sd card. In its current state the code runs for some defined duratio...
- Thu Dec 29, 2022 3:05 pm
- Forum: ESP32 Arduino
- Topic: WifiClient write sends gibberish characters.
- Replies: 0
- Views: 950
WifiClient write sends gibberish characters.
Hello everyone, This topic arised from the continuation of the post here https://www.esp32.com/viewtopic.php?f=19&t=31074 . I need a buffer to read from a sd card file which is about 20kb's in size. The size of this buffer is set by a define macro which currently is set to 1024 bytes. However, while...
- Thu Dec 22, 2022 1:58 pm
- Forum: ESP32 Arduino
- Topic: [SOLVED] Help with sending .txt file over HTTP formatted as a .json file
- Replies: 7
- Views: 4806
Re: Help with sending .txt file over HTTP formatted as a .json file
ISSUE IS SOLVED, the request just needed a Content-Length header haha. A 1 week brain melting session finally resulted in something.
Thanks a lot for your advices @lbernstone, hope you have a nice day.
Thanks a lot for your advices @lbernstone, hope you have a nice day.
- Thu Dec 22, 2022 11:47 am
- Forum: ESP32 Arduino
- Topic: [SOLVED] Help with sending .txt file over HTTP formatted as a .json file
- Replies: 7
- Views: 4806
Re: Help with sending .txt file over HTTP formatted as a .json file
@lbernstone, Before trying to implement the sequential read I tried to port my code over to WifiClient.h but after 3 days of trying everything there still is no content in the body of the request. Can you see where my issue lies (im highly suspecting the \n's and \r's)? (The first part hasn't change...
- Fri Dec 16, 2022 7:15 am
- Forum: ESP32 Arduino
- Topic: [SOLVED] Help with sending .txt file over HTTP formatted as a .json file
- Replies: 7
- Views: 4806
Re: Help with sending .txt file over HTTP formatted as a .json file
Thank you so much for your detailed answer. Sorry, I am not going to do your homework for you, mostly because I think your http flow is not correct. Sorry if i made it sound that way, that was not my intention. Since I'm fairly new to http (literally a week) I'm kind of lost between many different m...
- Thu Dec 15, 2022 6:33 am
- Forum: ESP32 Arduino
- Topic: [SOLVED] Help with sending .txt file over HTTP formatted as a .json file
- Replies: 7
- Views: 4806
Re: Help with sending .txt file over HTTP formatted as a .json file
just use WiFiClientSecure. Read in 4096 bytes at a time from the file, and write it out to the socket as you parse that. This will give you full control over what the output looks like. Thanks, I thought so. Can you provide an example how should i do that? Will newline operators be problematic or w...
- Tue Dec 13, 2022 7:00 pm
- Forum: ESP32 Arduino
- Topic: [SOLVED] Help with sending .txt file over HTTP formatted as a .json file
- Replies: 7
- Views: 4806
[SOLVED] Help with sending .txt file over HTTP formatted as a .json file
Hi everyone, Hello! This is my first time in this forum. I am developing a device that takes measurements from a microphone and stores these measurements into a txt file, logging each second. The end goal is then sending the contents of this .txt file in a .JSON object over HTTP to a server to make ...