On_sys_init Event

Top  Previous  Next

The sys object provides a very important event- on_sys_init. This event is guaranteed to be generated first when your device starts running. Therefore, you should put all your initialization code for sockets, ports, .etc into the event handler for this event:



sub on_sys_init



 sock.targetip= ""

 '...and everything else that you may need!

end sub