Help about Connect THETA Z1 with Bluetooth

Hello Every one

i’m beginner and i want help about how i can use javascript to connect the Theta Ricoh Z1 Camera with bluetooth

if i want make first connection with blutooth only start with basic connection

what i should use in java script to call API?

Fetch await or Client.post ???

for exampel :

async function get(){
    const content = {name:'camera._setBluetoothDevice', parameters:{uuid:'6e9239ef-572b-43fd-8091-c29f2c98338f' } };
    
    const response = client.post('http://192.168.1.1/osc/commands/execute', {
            
           
            body: JSON.stringify(content),
            headers:{ 'Content-Type': 'application/json' }
        });

        const reader = response.body.getReader();


         chunk = await reader.read();


      

}

Or

async function get(){
    const content = {name:'camera._setBluetoothDevice', parameters:{uuid:'6e9239ef-572b-43fd-8091-c29f2c98338f' } };
    
    const response = await fetch('http://192.168.1.1/osc/commands/execute', {
            
            method: 'POST', 
            body: JSON.stringify(content),
            headers:{ 'Content-Type': 'application/json' }
        });

        const reader = response.body.getReader();


         chunk = await reader.read();


      

}

or if no one is correct what i should Use to call API? i want only basic connection only for try

i have been trying for 5 days and it does not work

Have you read this article?

THETA V Bluetooth API Access Using Web Bluetooth API

The command is a POST.

POST /osc/commands/execute
{
    "name": "camera.setOptions",
    "parameters": {
        "options": {
            "fileFormat": {
                "type": "jpeg",
                "width": 2048,
                "height": 1024
            }
        }
    }
}

Getting_started