Sub Process_Globals
Dim connectedDevice As NameAndMac
end sub
serial1.Connect(connectedDevice.Mac)
This code seemed to work without the connectedDevice variable without being initialized.
If connectedDevice.IsInitialized=False Then
connectedDevice.Initialize
End If
When I tried to initialize connectedDevice, it shows already it is initialized. I had to use isInitialized to check the variable state. why?