19/05/2023: A causa di un errore sono stati cancellati, insieme ad account creati da bot, alcuni account legittimi. Si prega di leggere qui: https://www.gambas-it.org/smf/index.php?topic=9733.0
Public Timer_check As New TimerPublic XML_Menu_Structure As New XmlDocumentPublic MenuNavigator As New XmlExplorerConst Righe As Integer = 2Const Colonne As Integer = 16Public Sub Main() LoadMenuStructure(User.Home & "/menu.xml") Timer_check.Delay = 1000 Timer_check.Enabled = True ' Print "Ethernet address" ' Messaggio[0] = "Ethernet address" ' ' ' EthernetInterface = getActiveNetworkInterface() ' ip = DetectIP(EthernetInterface) ' ' ' Print ip ' Messaggio[1] = ip ' ' Shell "echo " & Messaggio[0] & Messaggio[1] & " > /dev/ttyUSB0" Do Wait Loop EndPublic Sub Timer_check_timer() 'update ip address information EthernetInterface = getActiveNetworkInterface() ip = DetectIP(EthernetInterface) End
Devi associare l'oggetto Timer ad un Gruppo, quale gestore dell'evento _Timer() .
Public Timer_check As new Timer As "Timer_check"
mi sfuggiva