8000 [ RN ] - Can't init theta-client-sdk on android 14 · Issue #68 · ricohapi/theta-client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[ RN ] - Can't init theta-client-sdk on android 14 #68
Open
@daviseares

Description

@daviseares

(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.

< 5C87 p dir="auto">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??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0