We are moving! We are currently migrating our community to the new Bosch Connected Industry Online Portal. The community will be available latest in the new year again, until then it will be in read-only mode. Click here for more information.
10-04-2021 11:43 AM
Hi All,
is there a possibility to write the sensor output which you can see at the console output in the xdk workbench to a local csv file or DB?
i tried to use the fwrite() function but the code was not building the .out file for some reason. Does somebody know how to write the console output to a local file, while the xdk is connected via USB to my laptop. i do not want to use wifi to transmit the data.
write the data to SD card is also not an option for me.
my c code:
static void writefile(void)
{
int n;
struct threeNum num;
FILE *fptr;
if ((fptr = fopen("...localstorage...\\text.txt","wb")) == NULL){
printf("Error! opening file");
// Program exits if the file pointer returns NULL.
exit(1);
}
for(n = 1; n < 5; ++n)
{
num.n1 = n;
num.n2 = 5*n;
num.n3 = 5*n + 1;
fwrite(&num, sizeof(struct threeNum), 1, fptr);
}
fclose(fptr);
}
10-05-2021 06:40 PM
Hello Haris13 ,
Unfortunately there is no longer XDK forum support here,
You can see more details below, thank you...
The Bosch XDK IoT hardware platform and associated software has been transferred to LEGIC Identsystems Ltd.
LEGIC has been an XDK ecosystem partner since 2019.
Please send XDK inquiries to LEGIC: