Interface IDataCallback


  • public interface IDataCallback
    Callback which receives data from a device
    • Method Detail

      • onNewData

        void onNewData​(IDeviceDescription source,
                       java.lang.String readingXML)
        Called when new data from device was received
        Parameters:
        source - device description or null if Device Kit can't retrieve it. IDeviceDescription fields that would be provided are SKU, Address, Name, Model, DBTitle, Manufacturer IDeviceDescription fields that may be provided are Manufacturer, Firmware, Hardware, Serial
        readingXML - Serialized as XML reading
        See Also:
        https://www.medm.com/sdk/docs/v2.11/api/v3/index.html#measurements
      • onDataCollectionStopped

        void onDataCollectionStopped()
        Called when data collection was finished