{"action":"closed","issue":{"url":"https://api.github.com/repos/ketai/ketai/issues/18","repository_url":"https://api.github.com/repos/ketai/ketai","labels_url":"https://api.github.com/repos/ketai/ketai/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/ketai/ketai/issues/18/comments","events_url":"https://api.github.com/repos/ketai/ketai/issues/18/events","html_url":"https://github.com/ketai/ketai/issues/18","id":114164727,"number":18,"title":"KetaiNet","user":{"login":"Dsk128","id":11359421,"avatar_url":"https://avatars0.githubusercontent.com/u/11359421?v=4","gravatar_id":"","url":"https://api.github.com/users/Dsk128","html_url":"https://github.com/Dsk128","followers_url":"https://api.github.com/users/Dsk128/followers","following_url":"https://api.github.com/users/Dsk128/following{/other_user}","gists_url":"https://api.github.com/users/Dsk128/gists{/gist_id}","starred_url":"https://api.github.com/users/Dsk128/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dsk128/subscriptions","organizations_url":"https://api.github.com/users/Dsk128/orgs","repos_url":"https://api.github.com/users/Dsk128/repos","events_url":"https://api.github.com/users/Dsk128/events{/privacy}","received_events_url":"https://api.github.com/users/Dsk128/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-10-29T22:57:35Z","updated_at":"2018-02-01T20:27:57Z","closed_at":"2018-02-01T20:27:57Z","author_association":"NONE","body":"Hello, I'm having trouble with one of the examples of the Ketai library. I'm running the Rapid Android Development's sketches. I changed the ip as it say on the book but it doesn't receive or send values. Also I'm noticing that the sketch/app is not getting the local ip address. I'm running it on Android 5.0.2\n\nimport netP5._;  //(1)\nimport oscP5._;\nimport ketai.net._;\nimport ketai.sensors._;\n\nOscP5 oscP5;\nKetaiSensor sensor;\n\nNetAddress remoteLocation;\nfloat myAccelerometerX, myAccelerometerY, myAccelerometerZ;\nint x, y, p; \nString myIPAddress; \nString remoteAddress = \"xxx.xxx.x.x\";  //(2) Customize!  \n\nvoid setup() {\n  sensor = new KetaiSensor(this);\n  orientation(PORTRAIT);\n  textAlign(CENTER, CENTER);\n  textSize(72);\n  initNetworkConnection();\n  sensor.start();\n}\n\nvoid draw() {\n  background(78, 93, 75);\n\n  text(\"Remote Mouse Info: \\n\" + //(3)\n  \"mouseX: \" + x + \"\\n\" +\n    \"mouseY: \" + y + \"\\n\" +\n    \"mousePressed: \" + p + \"\\n\\n\" +\n    \"Local Accelerometer Data: \\n\" + \n    \"x: \" + nfp(myAccelerometerX, 1, 3) + \"\\n\" +\n    \"y: \" + nfp(myAccelerometerY, 1, 3) + \"\\n\" +\n    \"z: \" + nfp(myAccelerometerZ, 1, 3) + \"\\n\\n\" +\n    \"Local IP Address: \\n\" + myIPAddress + \"\\n\\n\" +\n    \"Remote IP Address: \\n\" + remoteAddress, width/2, height/2);\n\n  OscMessage myMessage = new OscMessage(\"accelerometerData\"); //(4)\n  myMessage.add(myAccelerometerX); //(5)\n  myMessage.add(myAccelerometerY);\n  myMessage.add(myAccelerometerZ);\n  oscP5.send(myMessage, remoteLocation);  //(6)\n}\n\nvoid oscEvent(OscMessage theOscMessage) {\n  if (theOscMessage.checkTypetag(\"iii\"))  //(7)\n  {\n    x =  theOscMessage.get(0).intValue();  //(8)\n    y =  theOscMessage.get(1).intValue();\n    p =  theOscMessage.get(2).intValue();\n  }\n}\n\nvoid onAccelerometerEvent(float x, float y, float z)\n{\n  myAccelerometerX = x;\n  myAccelerometerY = y;\n  myAccelerometerZ = z;\n}\n\nvoid initNetworkConnection()\n{\n  oscP5 = new OscP5(this, 12000);  //(9)\n  remoteLocation = new NetAddress(remoteAddress, 12000);  //(10)\n  myIPAddress = KetaiNet.getIP();    //(11)\n}\n"}}
{"actor":{"display_login":"wolfm2"}}