code: def pick_event(self):
          
          logger.debug("checking event queue")
          event = snap7.snap7types.SrvEvent()
          ready = ctypes.c_int32()
          code = self.library.Srv_PickEvent(self.pointer, ctypes.byref(event),
                                            ctypes.byref(ready))
          check_error(code)
          if ready:
              logger.debug("one event ready: %s" % event)
              return event
          logger.debug("no events ready")
docs: Extracts an event (if available) from the Events queue.