خرید بک لینک

Vote count: 0

I'm trying to write a image via UART on Beaglebone Black. But when I use the write() function in library .

int  write(  int  handle,  void  *buffer,  int  nbyte  );

Regardless of agurment nbyte in the write() function has int type, I can not transfer 70kB at once time. I displayed the number of byte which is transfered, and the result is the number of byte = 4111.

length = write(fd,body.c_str(),strlen(body.c_str())); // 
cout<<length<<endl; // result length = 4111;
cout<<strlen(body.c_str())<<endl; // result strlen(body.c_str()) = 72255;

I hope to hear from you ! Thank you so much

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 19 ارديبهشت 1395 ساعت: 15:22

صفحه بندی