Ejemplo n.º 1
0
        void ProcessData(int numBytesRecv)
        {
            /*
             * System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
             * string s = enc.GetString(readBuffer,0,numBytesRecv);
             */
            //UnityEngine.Debug.Log(s);

            //UnityEngine.Debug.Log("Received: "+numBytesRecv);

            data         = new CameraSensorData(640, 360, CameraSensorData.CameraDataFormat.jpeg, readBuffer);
            requestImage = true;
        }
Ejemplo n.º 2
0
 public CameraSensor(string _address)
 {
     address = _address;
     data    = new CameraSensorData();
     StartConnect();
 }