Jump to content




Pull multiple modem events in particular period

wireless networking computer

2 replies to this topic

#1 mlugg

  • New Members
  • 2 posts

Posted 05 June 2016 - 09:54 AM

Hi,
Firstly sorry if I leave out some information or something, this is my first post.
I am working on designing a system to connect computers to a computer running a separate server OS. These servers send out messages over wireless modems to be picked up, and the user chooses which server (if any) to connect to. I want to make a function which will get all 'modem_message' events in a specified time period, and bundle them into a two-dimensional table with the frequency, reply-frequency, and message. How could I go about doing this?
Thanks in advance,
-Matthew

#2 Lupus590

  • Members
  • 1,963 posts
  • LocationUK

Posted 05 June 2016 - 01:32 PM

start a timer and save its ID to a variable
while true do
  pull event
  if event is modem message then process
  elseif event is timer event
	if timer ID is the timer which was started above then
	  break loop

I can expand this if you need more help

Edited by Lupus590, 05 June 2016 - 01:33 PM.


#3 mlugg

  • New Members
  • 2 posts

Posted 05 June 2016 - 01:35 PM

View PostLupus590, on 05 June 2016 - 01:32 PM, said:

 start a timer and save its ID to a variable while true do pull event if event is modem message then process elseif event is timer event if timer ID is the timer which was started above then break loop 
I can expand this if you need more help
I see, that makes sense. Thanks :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users