0
嘿所有我有這被稱爲:緒子送價值
Public Sub doStuff(ByVal what2Do As String)
Dim command As String = ""
If Trim(lanSent(1)) = "turnOffPC" Then
command = "r5"
ElseIf Trim(lanSent(1)) = "TurnOnPC" Then
command = "r3"
End If
Dim t As New Threading.Thread(AddressOf androidWS)
t.SetApartmentState(Threading.ApartmentState.STA)
t.Start()
End Sub
Private Shared Sub androidWS(ByVal command As String)
Dim arduinoWebSite As New WebBrowser
arduinoWebSite.Navigate("http://192.168.9.39:19/?r=" & command)
End Sub
,我想知道我怎麼能值發送到androidWS?
的作品
Public Sub doStuff(ByVal what2Do As String)
Dim command As String = ""
If Trim(lanSent(1)) = "turnOffPC" Then
command = "r5"
ElseIf Trim(lanSent(1)) = "TurnOnPC" Then
command = "r3"
End If
Dim t As New Threading.Thread(AddressOf androidWS)
t.SetApartmentState(Threading.ApartmentState.STA)
t.Start(command)
End Sub
Private Shared Sub androidWS(ByVal command As Object)
Dim arduinoWebSite As New WebBrowser
arduinoWebSite.Navigate("http://192.168.9.39:19/?r=" & command)
End Sub
那麼這很容易。感謝您的幫助,h4xpace – StealthRT 2013-05-07 20:15:34