I need to periodically send sensor data to a connected host. The data can be several kilobytes in size. I have been using the GattServer_SendInstantValueNotification() function to send the data via the notification mechanism. The only way I can get it to work reliably is to only send a maximum of gAttMaxNotifIndDataSize_d bytes in each frame and wait at least a full connection interval before sending the next frame.
This doesn't seem right as I should be able to cram more frames per connection interval, no? What's the best way to send, say, 4k worth of data via notifications with a 20ms connection interval and a 247 byte MTU? I've looked all over but can't find any way to sync up to the connection event or event find a callback to tell me that it's ok to queue up more data.