ef621d7fb7a683177fb616143f23efa6ae23c12d
[platform/upstream/iotjs.git] / src / js / ble_hci_socket_hci_status.js
1 /* Copyright 2016-present Samsung Electronics Co., Ltd. and other contributors
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15
16 /* Copyright (C) 2015 Sandeep Mistry sandeep.mistry@gmail.com
17  *
18  * Permission is hereby granted, free of charge, to any person obtaining a copy
19  * of this software and associated documentation files (the "Software"), to deal
20  * in the Software without restriction, including without limitation the rights
21  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22  * copies of the Software, and to permit persons to whom the Software is
23  * furnished to do so, subject to the following conditions:
24  *
25  * The above copyright notice and this permission notice shall be included in
26  * all copies or substantial portions of the Software.
27  *
28  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34  * SOFTWARE.
35  */
36
37 [
38   "Success",
39   "Unknown HCI Command",
40   "Unknown Connection Identifier",
41   "Hardware Failure",
42   "Page Timeout",
43   "Authentication Failure",
44   "PIN or Key Missing",
45   "Memory Capacity Exceeded",
46   "Connection Timeout",
47   "Connection Limit Exceeded",
48   "Synchronous Connection Limit to a Device Exceeded",
49   "ACL Connection Already Exists",
50   "Command Disallowed",
51   "Connection Rejected due to Limited Resources",
52   "Connection Rejected due to Security Reasons",
53   "Connection Rejected due to Unacceptable BD_ADDR",
54   "Connection Accept Timeout Exceeded",
55   "Unsupported Feature or Parameter Value",
56   "Invalid HCI Command Parameters",
57   "Remote User Terminated Connection",
58   "Remote Device Terminated due to Low Resources",
59   "Remote Device Terminated due to Power Off",
60   "Connection Terminated By Local Host",
61   "Repeated Attempts",
62   "Pairing Not Allowed",
63   "Unknown LMP PDU",
64   "Unsupported Remote Feature / Unsupported LMP Feature",
65   "SCO Offset Rejected",
66   "SCO Interval Rejected",
67   "SCO Air Mode Rejected",
68   "Invalid LMP Parameters / Invalid LL Parameters",
69   "Unspecified Error",
70   "Unsupported LMP Parameter Value / Unsupported LL Parameter Value",
71   "Role Change Not Allowed",
72   "LMP Response Timeout / LL Response Timeout",
73   "LMP Error Transaction Collision",
74   "LMP PDU Not Allowed",
75   "Encryption Mode Not Acceptable",
76   "Link Key cannot be Changed",
77   "Requested QoS Not Supported",
78   "Instant Passed",
79   "Pairing With Unit Key Not Supported",
80   "Different Transaction Collision",
81   "Reserved",
82   "QoS Unacceptable Parameter",
83   "QoS Rejected",
84   "Channel Classification Not Supported",
85   "Insufficient Security",
86   "Parameter Out Of Manadatory Range",
87   "Reserved",
88   "Role Switch Pending",
89   "Reserved",
90   "Reserved Slot Violation",
91   "Role Switch Failed",
92   "Extended Inquiry Response Too Large",
93   "Secure Simple Pairing Not Supported By Host",
94   "Host Busy - Pairing",
95   "Connection Rejected due to No Suitable Channel Found",
96   "Controller Busy",
97   "Unacceptable Connection Parameters" ,
98   "Directed Advertising Timeout",
99   "Connection Terminated due to MIC Failure",
100   "Connection Failed to be Established",
101   "MAC Connection Failed",
102   "Coarse Clock Adjustment Rejected but Will Try to Adjust Using Clock Dragging"
103 ]