Hi!
Yes, you could save the toggle info when pairing with a device.
Yes, for non-paged devices, only page 0 would be sent.
If pages 1, 2, and 3, are being sent then it the pattern would be: send 64 main pages, send page 1, send 64 main pages, send page 2, send 64 main pages, send page 3, send 64 main pages, send page 1 etc.
If pages 2, and 3, are being sent then it the pattern would be: send 64 main pages, send page 2, send 64 main pages, send page 3, send 64 main pages, send page 2, send 64 main pages, send page 3 etc.
Note that these patterns are device profile specific so this only applies to HR.
Yes, this would make it likely that you would miss some of the background pages if receiving at a lower rate. However as the manufacturer info does not change between messages this may be deemed an acceptable trade off for the lower power consumption by the display. If you did want to pick this information up more quickly then you could receive at 4Hz until all the background pages had been seen before switching to a slower receive rate.
The code is a simple example only, and you are welcome to create a more robust version.
You're welcome. Hope your project goes well.