0% found this document useful (0 votes)
13 views

Documento

Uploaded by

botito bot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Documento

Uploaded by

botito bot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Include

void setup () {

eHealth.readGlucometer();

Serial.begin(115200);

retardo (100);

void loop () {

uint8_t numberOfData = eHealth.getGlucometerLength();

Serial.print(F(«Number of measures : «));

Serial.println(numberOfData, DEC);

retardo (100);

for (int i = 0; i < numberOfData; i++) {

// The protocol sends data in this order

Serial.println(F(«==========================================»));

Serial.print(F(«Measure number «));

Serial.println(i + 1);

Serial.print(F(«Date -> «));

Serial.print(eHealth.glucoseDataVector[i].day);

Serial.print(F(» of «));

Serial.print(eHealth.numberToMonth(eHealth.glucoseDataVector[i].month));

Serial.print(F(» of «));

Serial.print(2000 + eHealth.glucoseDataVector[i].year);

Serial.print(F(» at «));
if (eHealth.glucoseDataVector[i].hour < 10) {

Serial.print(0); // Only for best representation.

Serial.print(eHealth.glucoseDataVector[i].hour);

Serial.print(F(«:»));

if (eHealth.glucoseDataVector[i].minutes < 10) {

Serial.print(0);// Only for best representation.

Serial.print(eHealth.glucoseDataVector[i].minutes);

if (eHealth.glucoseDataVector[i].meridian == 0xBB)

Serial.println(F(» pm»));

else if (eHealth.glucoseDataVector[i].meridian == 0xAA)

Serial.println(F(» am»));

Serial.print(F(«Glucose value : «));

Serial.print(eHealth.glucoseDataVector[i].glucose);

Serial.println(F(» mg/dL»));

delay(20000);

You might also like