mc-Things

mc-Products => mc-Studio => Topic started by: bdevlin on July 08, 2017, 12:28:21 pm

Title: Variables for shared event timing
Post by: bdevlin on July 08, 2017, 12:28:21 pm
Looking to do something like this. Possible?

Class mqtt_json
    Shared interval As Byte = 5
    Shared span As String = "Minutes"
   
   
    Shared Event json_payload_mqtt() RaiseEvent Every interval span
            Do Stuff
End Event
End Class
Title: Re: Variables for shared event timing
Post by: mc-John on July 10, 2017, 09:26:17 am
Values in raise event need to be literals.

So  "Shared Event json_payload_mqtt() RaiseEvent Every 5 Minutes" would work.