On_sys_init Event

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:

** Tibbo Basic **

sub on_sys_init
 sock.targetip= "" 
 '...and everything else that you may need!
end sub