#sha
Add(MainActivity,2953706,42,77)
{
}
Add(EditText,804695,140,84)
{
Left=10
Top=10
Width=245
LayoutManager="hor1"
Text="192.168.1.4"
}
Add(EditText,7114956,182,84)
{
Left=10
Top=35
Width=245
LayoutManager="hor1"
Text="1357"
}
Add(Button,10430713,42,154)
{
Left=10
Top=85
Width=70
LayoutManager="hor"
WidthMode=0
Caption="Connect"
link(onClick,6687868:doConnect,[(107,160)(107,188)])
}
Add(Button,6782545,42,189)
{
Left=85
Top=85
Width=80
LayoutManager="hor"
WidthMode=0
Caption="Disconnect"
link(onClick,6687868:doDisconnect,[])
}
Add(EditText,9815882,224,42)
{
Left=10
Top=60
Width=245
Text="hello"
Hint="Data"
}
Add(Button,9395068,42,259)
{
Left=215
Top=85
Width=40
WidthMode=0
Caption="Send"
link(onClick,14838657:doStartThread,[])
}
Add(LayoutLinear,6958181,42,119)
{
Name="hor"
Orientation=1
WidthMode=1
}
Add(TCPClient,6687868,168,182)
{
Point(SendData)
Point(ReceivedData)
link(onIOException,7713826:doShow,[])
link(onUnknownHostException,11944488:doShow,[])
link(IP,804695:Value,[(181,149)(146,149)])
link(Port,7114956:Value,[])
link(SendData,4323406:Converted,[(195,149)(230,149)])
link(ReceivedData,514351:Var1,[(202,159)])
}
Add(Converter,4323406,224,84)
{
Mode=6
link(Data,9815882:Value,[])
}
Add(ToastNotification,7713826,266,189)
{
Text="IOException error!"
}
Add(ToastNotification,11944488,224,196)
{
Text="UnknownException"
}
Add(Array,5658054,266,84)
{
Type="byte"
Size=1024
}
Add(Hub,3566382,91,224)
{
link(onEvent1,6687868:doReceiveData,[(123,230)(123,202)])
link(onEvent2,10170285:In,[])
}
Add(AlertDialog,7022587,308,231)
{
link(Message,14778579:Converted,[])
}
Add(Converter,14778579,308,182)
{
Mode=5
link(Data,514351:Var3,[(314,159)])
}
Add(GetDataEx,514351,266,154)
{
link(Data,5658054:Array,[])
}
Add(LineBreak,7753844,266,231)
{
link(Out,7022587:doShow,[])
Primary=[10170285,-147,0]
}
Add(Button,16694549,42,224)
{
Left=170
Top=85
Width=40
LayoutManager="hor"
Caption="Read"
link(onClick,3566382:doEvent1,[])
}
Add(Thread,14838657,91,259)
{
link(onStartThread,6687868:doSendData,[(152,265)(152,209)])
}
Ответов: 1821
Рейтинг: 168
|
|||
Neo, извиняюсь за задержку. УМВР, ЧЯДНТ
|
|||
карма: 5 |
|