Open
Description
(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
Labels
No labels