Loom 4 v4.5
Arduino library for Internet of Things Rapid Prototyping in environmental sensing
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Loom_BatchSD Class Reference

#include <Loom_BatchSD.h>

Public Member Functions

 Loom_BatchSD (Loom_Hypnos &hypnos, int batchSize)
 
bool shouldPublish ()
 
File & getBatch ()
 
int getBatchSize ()
 
int getCurrentBatch ()
 

Detailed Description

Basic wrapper for SD to manage batch uploading

Constructor & Destructor Documentation

◆ Loom_BatchSD()

Loom_BatchSD::Loom_BatchSD ( Loom_Hypnos hypnos,
int  batchSize 
)

Construct a new BatchSD instance

Parameters
hypnosReference to the hypnos to manage the SD card

Member Function Documentation

◆ getBatch()

File & Loom_BatchSD::getBatch ( )

Return a pointer to the open memory read from arduino

◆ getBatchSize()

int Loom_BatchSD::getBatchSize ( )
inline

Get the specified size of the batch

◆ getCurrentBatch()

int Loom_BatchSD::getCurrentBatch ( )
inline

Get the current batch we are on

◆ shouldPublish()

bool Loom_BatchSD::shouldPublish ( )

Returns if we should publish the data on this batch


The documentation for this class was generated from the following files: