Hello Community,
i'm currently working with NRF5340dk.
My application collects data from sensors for now and display it on the terminal emulator.
Next step for me is to send these datas to my phone (for example) through BT.
i tried to gather all the data to a .txt file to be able to send them as a file to my phone
but it doesnt work for the moment, there's no file being created.
for the part of BT data sending i have no idea where to begin.
i tried the BT sample on Zephyr but it did not help me much.
do you have any recommendation for me to follow or tuto's to read that can help me get the job done
please feel free to link me anything that can be useful .
i'm putting below the code i putted in my main to create the file
int function(){ char *filename = "bt_file.txt"; FILE *fp =fopen("bt_file.txt","w"); if(fp == NULL) { printf("Eroor opening the file %s", filename); return -1; } for (char ch = 'a'; ch < 'z'; ch++) fputc(ch, fp); // close the file fclose(fp); return 0; }
thank you for stopping by
i really appreciate your help in advance