state - novars-jp/MaBeeeMacApp GitHub Wiki
/state
CoreBluetoothのCBCentralManagerStateを返します。簡単にいうとMacのBluetoothの状態です。
リクエスト
http://localhost:11111/state
レスポンス
Status
- 200
Body
{
"state": "PoweredOn"
}
- Unknown
- 起動後なにも行われていないなどの状態です。
- Resetting
- リセット中です。
- Unsupported
- MacでBluetooth Low Energyがサポートされていません。
- Unauthorized
- Macでこのアプリに対してBluetoothの使用が許可されていません。
- PoweredOff
- Bluetoothがオフになっています。
- PoweredOn
- 問題なく起動しています。