public static void UpdateBgVal(long timestamp, double calculated_value) { LibreBlock libreBlock = getForTimestamp(timestamp); if (libreBlock == null) { return; } Log.e(TAG, "Updating bg for timestamp " + timestamp); libreBlock.calculated_bg = calculated_value; libreBlock.save(); }
public static void UpdateBgVal(long timestamp, double calculated_value) { LibreBlock libreBlock = getForTimestamp(timestamp); if (libreBlock == null) { return; } Log.e(TAG, "Updating bg for timestamp " + timestamp); libreBlock.calculated_bg = calculated_value; libreBlock.save(); }
public static void UpdateBgVal(long timestamp, double calculated_value) { LibreBlock libreBlock = getForTimestamp(timestamp); if (libreBlock == null) { return; } Log.e(TAG, "Updating bg for timestamp " + timestamp); libreBlock.calculated_bg = calculated_value; libreBlock.save(); }
public static LibreBlock createAndSave(String reference, long timestamp, byte[] blocks, int byte_start, boolean allowUpload) { final LibreBlock lb = create(reference, timestamp, blocks, byte_start); if (lb != null) { lb.save(); if(byte_start == 0 && blocks.length == 344 && allowUpload) { Log.d(TAG, "sending new item to queue"); UploaderQueue.newTransmitterDataEntry("create" ,lb); } } return lb; }
public static LibreBlock createAndSave(String reference, long timestamp, byte[] blocks, int byte_start, boolean allowUpload) { final LibreBlock lb = create(reference, timestamp, blocks, byte_start); if (lb != null) { lb.save(); if(byte_start == 0 && blocks.length == 344 && allowUpload) { Log.d(TAG, "sending new item to queue"); UploaderQueue.newTransmitterDataEntry("create" ,lb); } } return lb; }
public static LibreBlock createAndSave(String reference, long timestamp, byte[] blocks, int byte_start, boolean allowUpload) { final LibreBlock lb = create(reference, timestamp, blocks, byte_start); if (lb != null) { lb.save(); if(byte_start == 0 && blocks.length == 344 && allowUpload) { Log.d(TAG, "sending new item to queue"); UploaderQueue.newTransmitterDataEntry("create" ,lb); } } return lb; }