Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ RN ] - Can't init theta-client-sdk on android 14 #68

Open
daviseares opened this issue Feb 1, 2024 · 0 comments
Open

[ RN ] - Can't init theta-client-sdk on android 14 #68

daviseares opened this issue Feb 1, 2024 · 0 comments

Comments

@daviseares
Copy link

daviseares commented Feb 1, 2024

(EDIT)

I tested using another phone with android 11 and it works. Apparently, there is a problem with Xiaomi Redmi note 12 and Android 14 Hyper OS.

Hi guys, I can't init theta sdk using react-native and android. It's works on old versions but not the latest.

I got this error every time that I try to initialize.
error [Error: Connect timeout has expired [url=http://192.168.1.1/osc/info, connect_timeout=unknown ms]]

This is my implementation

  const initTheta = async () => {
    console.log('initializing...');
    try {
      const endpoint = 'http://192.168.1.1';
      const timeout = {
        connectTimeout: 5000,
        requestTimeout: 5000,
        socketTimeout: 5000,
      };
      const config = {
        clientMode: {
          username: 'THETAYP00123456',
          password: '00123456',
        },
      };

      await initialize(endpoint, config, timeout);
      console.log('initialized.');
    } catch (error) {
      console.log('error', error);
    }
  };

  useEffect(() => {
    initTheta();
  }, []);

I don't know if I need to fill client mode and config objects, but in this case I did.

So, how can I connect with my camera and stop this error??

@daviseares daviseares changed the title Can't init theta-client-sdk on react-native (android device) Can't init theta-client-sdk on react-native - android 14 Feb 1, 2024
@daviseares daviseares changed the title Can't init theta-client-sdk on react-native - android 14 [ RN ] - Can't init theta-client-sdk on react-native - android 14 Mar 20, 2024
@daviseares daviseares changed the title [ RN ] - Can't init theta-client-sdk on react-native - android 14 [ RN ] - Can't init theta-client-sdk on android 14 Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant