increment method

void increment()

Increments the value of this beacon.

Implementation

void increment() {
  value = peek() + 1 as T;
}