Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Poll the Module for Sale events

Info

See Events for the supported event list

Code Block
// With timeout in ms
NexoEvent event = retailModule.pollTimeout(1000);

// Non-blocking
NexoEvent event = retailModule.poll();

NexoEventType type = event.GetType();
switch (type) {
case Login: 
  {...}
[...]
}

Respond to a previously polled event

...