Open JeasonZzz opened 7 years ago
If you had the new line character '\n' the message will be transmitted even if its shorter than 32. Jonathan Piat
Le 24 févr. 2017 12:13 PM, "JeasonZzz" notifications@github.com a écrit :
Dear Jpiat Your code could run properly but we tried to transfer variety of words instead of hello world. We erase // before #define TRANSMIT_SERIAL and because of the sentence if(com_buffer_nb_bytes >= 32 || c == '\n'), if we press Enter on the keyboard the inputted sentence should be transferred. But the situation now is we could only transfer data if we input more than 32 words.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jpiat/arduino/issues/22, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNWZHZlK8vQqmNdmBdGlHb7ez20FhApks5rfrs8gaJpZM4MLF21 .
we tried the new line character '\n', but it could not help. The words can only be transmitted if the number of words accumulated to 32. And the part more than 32 words can not show until the next 32 words are inputted.
Hiw do you send '\n' to the arduino ? Jonathan Piat
Le 24 févr. 2017 12:28 PM, "JeasonZzz" notifications@github.com a écrit :
we tried the new line character '\n', but it could not help. The words can only be transmitted if the number of words accumulated to 32. And the part more than 32 words can not show until the next 32 words are inputted.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jpiat/arduino/issues/22#issuecomment-282269932, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNWZK0v03_-vDJcHbV3zGJg6mIse4vGks5rfr7DgaJpZM4MLF21 .
Now it works! Thanks!
Dear Jpiat Your code could run properly but we tried to transfer variety of words instead of hello world. We erase // before #define TRANSMIT_SERIAL and because of the sentence if(com_buffer_nb_bytes >= 32 || c == '\n'), if we press Enter on the keyboard the inputted sentence should be transferred. But the situation now is we could only transfer data if we input more than 32 words.