 
 
 static uint8_t node_id;
+static int32_t time_offset = 0;
 
 typedef struct {
     uint8_t len;

    uint8_t type = buf->data[2];

    Serial.print(argv[0]);
    Serial.print(" ");
    Serial.print(dest, HEX);
    Serial.print(" ");
    Serial.print(type, HEX);

            memcpy(&beacon, &rcv[3], sizeof(beacon));
            // determine next send time
            next_send = m + beacon.slot_offs + (beacon.slot_size * node_id);
            // recalculate time offset
            time_offset = beacon.time - m;
            break;

        case 0x01:
