toggle method

void toggle()

Toggles the value of this beacon.

Implementation

void toggle() {
  value = !peek();
}