OSC receive help!

Hello, I created a project using GryOSC app with OSC recieve. It is connected to my iPhone however, I can’t seem to control or move the animation. Can anyone help me?
thanks!

This is the code:

void ofApp:: update(){

	else if(m.getAddress() == "/gyrosc/gyro")
    {
		// the single argument is a string
        Circles.gyroX= m.getArgAsFloat(0);
        osc= m.getArgAsFloat(1);
        Circles.gyroY= m.getArgAsFloat(2);
        cout << m.getArgAsFloat(0) << "  " << m.getArgAsFloat(1)<< "  " << m.getArgAsFloat(2) << endl;
    }

}

void LightCircle:: draw(){

for (int i=20; i < ofGetWidth(); i = i+20)
{
for (int j=20; j<ofGetHeight(); j= j+20)
{
ofDrawEllipse(i, j, r , r);
diff[0] = cos(ofDegToRad(ofDist(i, j, cos(ofDegToRad(i))*ofGetWidth(), sin(ofDegToRad(j))*ofGetHeight())-ofGetFrameNum()*2))*r;
diff[1] = sin(ofDegToRad(ofDist(i, j, sin(ofDegToRad(i))*ofGetWidth()/2, cos(ofDegToRad(j))*ofGetHeight()/2)-ofGetFrameNum()*2))*r;
diff3 = cos(ofDegToRad(ofDist(i, j, cos(ofDegToRad(i))*ofGetWidth(), sin(ofDegToRad(j))*ofGetHeight())-ofGetFrameNum()*2))*r;
diff2 =ofDist(i, j, ofGetMouseX(), ofGetMouseY());

        // mouse interaction
        
        //if (ofDist(i, j, ofGetMouseX(), ofGetMouseY())<area*(1.2))
        
        float LCx= ofMap(gyroX, -1.5, 1.5, 0, 300, clamp= true);
        cout << "gyroX" << gyroX << endl;
        float LCy= ofMap(gyroY, -1.5, 1.5, 0, 300, clamp= true);
        cout << "gryoY" << gyroY << endl;
        
         if(ofDist(LCx, LCy, i, j)<area*(1.2))
        {
            
            ofSetColor(0, 128, 255);
            // ofDrawEllipse(i, j, r-(diff2), r-(diff2));
        }
        else if (ofDist(i, j, ofGetWidth()-size, ofGetHeight()-size)< area*10)
        {
            ofSetHexColor(0x00FF00);
            
            // Size change in background
             ofDrawEllipse(i, j, r-diff3, r-diff3);
            //ofDrawEllipse(i, j, r, r);
        }

}

are you receiving any data?
is this code the actual code or is it a pseudocode. I ask because I see several grammatical errors which should make the build to stop.

hello, thanks for getting back. Yes, I am receiving data generally but not to this animation. Yes, this is pseudocode would it be easier if I hand you the whole project?
Thanks!

Hi, Ok so you are getting osc data into your computer but are you sure that you are getting it into your OF app? (just print to the console anything you get).
Make sure there are no other apps using the same ports as you will only get data on the first one that opens the port.
having the real code can be much better. Dont attach the whole project. just paste inline the relevant files. (ofApp.h, ofApp.cpp, etc)
best

Ha99, also, when you’re pasting in your code to the forums, surround it three backtick characters, like this:

Here is my code: 
```
void ofApp::update() {
    //...
}    
```

so that it renders like this:

Here is my code:

void ofApp::update() {
    //...
}

That’ll make it a lot easier to read. Thanks!