NeoSmartpen / Windows-SDK2.0

Neo smartpen SDK 2.0 for Windows Platform
GNU General Public License v3.0
21 stars 10 forks source link

OfflineDataInfo does not contain page count information #4

Closed inkmike closed 7 years ago

inkmike commented 7 years ago

One of the things we'd like our implementation to do is return all the data from the device in a single request - meaning that our implementation has to know how much data to expect from the SDK so it knows when to finish and return the final result.

When calling ReqOfflineDataList, the returned OfflineDataInfo objects always has a null 'Pages' attribute. This means that when we call PenComm.ReqOfflineData, we are unsure how many times we will receive the onReceiveOfflineStrokes callback (as this callback appears to be triggered once for every page) - at this point we have no way of knowing how many pages that note contains.

Some additional information: Device model: NWP-F110 Device class: 1280 (V1)

Is it possible to retrieve the number of pages per note? Alternatively, is there some sort of indicator to identify the final onReceiveOfflineStrokes callback?

chyccs commented 7 years ago

Hi inkmake,

Pages attribute is not supported for NWP-F110. and we can't indicate when called final onReceiveOfflineStrokes callback.

If your offline data is in one page, but you have a lot of writing   The onReceiveOfflineStrokes callback can be called many times. This is because the maximum amount of data that can be transmitted at one time is fixed.

It is recommended that you refer to this callback method since the onFinishedOfflineDownload callback is called when the data transfer is finished.

inkmike commented 7 years ago

Thanks, the onFinishedOfflineDownload is exactly what was needed.