FOGL-3527  When a filter increasing the number of readings in a block make sure we do not exceed the maximum for  the plugin. Break into smaller blocks if required. (#1795)
FOGL-3527  When a filter increasing the number of readings in a block make sure we do not exceed the maximum for  the plugin. Break into smaller blocks if required. (#1795)

* FOGL-3527 Split the readings vector on sending if filtering has caused
the block size limit to be exceeded.

Signed-off-by: Mark Riddoch <f1b5a91d4d6ad523f2610114591c007e75d15084@dianomic.com>

* FOGL-3527 Break up large blocks of data in sending process

Signed-off-by: Mark Riddoch <f1b5a91d4d6ad523f2610114591c007e75d15084@dianomic.com>

* FOGL-3527 Fix failure to send last partial block of data

Signed-off-by: Mark Riddoch <f1b5a91d4d6ad523f2610114591c007e75d15084@dianomic.com>

* Fix for reading data sizes issue

Signed-off-by: Mark Riddoch <f1b5a91d4d6ad523f2610114591c007e75d15084@dianomic.com>

foglamp/FogLAMP,foglamp/FogLAMP,foglamp/FogLAMP,foglamp/FogLAMP