Start Bluetooth device scan
Args: 3 (Not sure what this argument means, I've only seen the app use the value 3 for it. Works with other integers and successfully starts a BT scan. Maybe a max list size?)
Parameters
Path Parameters
Not sure what this argument means, I've only seen the app use the value 3 for it. Works with other integers and successfully starts a BT scan. Maybe a max list size?
Responses
Successful response
Get Bluetooth device scan result
First do a startbtdiscovery:3: to start the scan, then use this to get the result.
Output (JSON):
num: Number of found devices
scan_status: BT scan step
0: Not started
1: Initializing
2: ??? (never seen it)
3: Scanning
4: Finished scanning
list: List of found devices
Already paired devices may be listed as well.
Responses
Successful response
Clear Bluetooth device scan result
Get paired Bluetooth devices
Output (JSON):
num: Number of found devices
scan_status: BT scan step
1: Initializing
2: ??? (never seen it)
3: Scanning
4: Finished scanning
list: List of found devices
Responses
Successful response
Connect to a Bluetooth device
Example: https://192.168.1.100/httpapi.asp?command=connectbta2dpsynk:9c:2a:be:2e:ce:f1
Output:
Success: OK
Error: Failed
Observations: The device should be an Audio Sink (e.g. speaker, A/V reciever). The audio output will be changed to the device.
Parameters
Path Parameters
The Bluetooth MAC address of the device you want to connect to or disconnect from
"9c:2a:be:2e:ce:f1"Responses
Successful response
Disconnect from a Bluetooth device
Example: https://192.168.1.100/httpapi.asp?command=disconnectbta2dpsynk:9c:2a:be:2e:ce:f1
Parameters
Path Parameters
The Bluetooth MAC address of the device you want to connect to or disconnect from
"9c:2a:be:2e:ce:f1"Responses
Successful response
Get Bluetooth pairing status
Example: https://192.168.1.100/httpapi.asp?command=getbtpairstatus
Output (JSON):
result: Pair status
0: Not paired
1: Disconnected
2: Connecting (assumption, never seen it)
3: Connected
Responses
Successful response