Comments (1)
You are close to the answer. If you check inside uartSentPacket you will see that it splits the data and calls itself recursively until all the image data has been sent (or the process has been cancelled).
So to sent a new image:
-
uartSendEachPacketSequentially calls uartSentPacket the image data and a starting offset of 0.
-
uartSendPacket splits the data depending on the maximum transfer unit (MTU) negotiated with the peripheral and
calls write with that packet. When write finishes uartSendPacket calls itself recursively but with a new starting offset.
I hope this helps you
from bluefruit_le_connect_v2.
Related Issues (20)
- what is init file? HOT 3
- How to change device name "Adafruit Bluefruit LE" to "My Device". HOT 2
- How to pair programmatically BLE device(nRF 52840) with iOS iPhone using Swift HOT 1
- Can't edit my iOS App HOT 3
- Sending more than 20 bytes via UART HOT 6
- isDefaultConfigurationAssumed can't do PWM HOT 1
- GPS location with iPhone locked
- Uart publish to more than a single Adafruit IO feed HOT 2
- No Modules in iOS 15 HOT 2
- App not run on macbook
- Build failed (Chart,iosDFULibrary,Cocamqtt) HOT 2
- info file issue HOT 2
- About the HEX mode of UART HOT 1
- Pinch zooming shows wrong part of the graph
- Enhancement: Ability to send a legend/title for plots
- Enhancement: A couple of control buttons on the plots screen
- When I build it in Xcode, it always fails with Undefined symbol HOT 4
- Add link to peripheral UART code in Readme HOT 1
- UART mode limited to 20 characters HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluefruit_le_connect_v2.