Hello together,
I am new in this forum and maybe you can help me with my project.
I have a teensy 3.2 and i need to write a GPS-String (it may can have more then 64 bytes, ~68 bytes) as a slave_writer to a Master_receiver. But if I write the GPS string with Wire.Write(gps_string.c_str()); it only sends the 32 bytes
And some guys said they are sending more then 100 bytes with one request of the master. How i can do that in my project ?
If the buffer is hardware limited to 32 bytes i have to split the GPS string in 2 or 3 datapackages (array) with 32chars. I need to split the string in the loop() right ? If i do that in the ISR (requestEvent) it could be a time problem ?
And i think i need to check if the Tx Buffer is empty after each datapackage that i send, before i send the next package via i2c ?
Many thanks in advance...
DaKe
I am new in this forum and maybe you can help me with my project.
I have a teensy 3.2 and i need to write a GPS-String (it may can have more then 64 bytes, ~68 bytes) as a slave_writer to a Master_receiver. But if I write the GPS string with Wire.Write(gps_string.c_str()); it only sends the 32 bytes
And some guys said they are sending more then 100 bytes with one request of the master. How i can do that in my project ?
If the buffer is hardware limited to 32 bytes i have to split the GPS string in 2 or 3 datapackages (array) with 32chars. I need to split the string in the loop() right ? If i do that in the ISR (requestEvent) it could be a time problem ?
And i think i need to check if the Tx Buffer is empty after each datapackage that i send, before i send the next package via i2c ?
Many thanks in advance...
DaKe