printf("Checking Key-Values...\n");
char buffer[80];
- sprintf(buffer, "sensor0");
+ sprintf(buffer, "humid0");
IoTString * iKeyA = new IoTString(buffer);
IoTString *testValA1 = t1->getCommitted(iKeyA);
testValA1->print();
printf("\n\n");
}
+ sprintf(buffer, "tempF0");
+ IoTString * iKeyB = new IoTString(buffer);
+ IoTString * testValB1 = t1->getCommitted(iKeyB);
+
+ if (testValA1 == NULL) {
+ printf("\n\nKEY-VALUE B is NULL!\n\n");
+ foundError = true;
+ } else {
+ printf("Printing value... ");
+ testValB1->print();
+ printf("\n\n");
+ }
iKeyA->releaseRef();
testValA1->releaseRef();
+ iKeyB->releaseRef();
+ testValB1->releaseRef();
for (uint i = 0; i < transStatusList->size(); i++) {
TransactionStatus * status = transStatusList->get(i);