1466 ItemNode* newNode = 0;
1468 newNode = (ItemNode*)
malloc(
sizeof(ItemNode));
1472 printf(
"no memory available while adding itemNode!\n");
1482 newNode->item = _item;
1483 newNode->lastTransmittedValue = *(_item->location);
1485 newNode->threshold = (_item->defaultDeadband < 0) ? 0.0 : (_item->defaultDeadband / 2);
1493 newNode->locBackup = _item->location;
1495 sizeof(
volatile float*));
1496 newNode->checksumBackup = newNode->checksum;
1511 printf(
"init of %s with ID %d: %f\n", newNode->item->name, newNode->id,
1512 newNode->lastTransmittedValue);
unsigned int calculateChecksum(unsigned char *buffer, int size)
static ItemNode * firstNode
static unsigned int nodesAmount
static ItemNode * lastNode