Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(textBox1.Text))
            {
                for (int i = 0; i < 1000; i++)
                {
                    device.Send(new PoplarCloud.DataPacket.MessagePack(
                                    device.ParentSocket.Id,
                                    MessageType.Msg,
                                    Encoding.UTF8.GetBytes(i.ToString())));
                }

                //device.Send(new CustomPack() { Text = textBox1.Text });
            }
            //transfer.ConnectParent("127.0.0.1", 8889);
        }