OLD | NEW |
(Empty) | |
| 1 [ |
| 2 { |
| 3 "namespace": "experimental.serial", |
| 4 "nodoc": true, |
| 5 "functions": [ |
| 6 { |
| 7 "name": "open", |
| 8 "type": "function", |
| 9 "description": "Opens a connection to the given serial port.", |
| 10 "parameters": [ |
| 11 { |
| 12 "name": "port", |
| 13 "type": "string", |
| 14 "description": "The name of the serial port to open." |
| 15 }, |
| 16 { |
| 17 "name": "callback", |
| 18 "type": "function", |
| 19 "description": "Called when the connection has been opened.", |
| 20 "parameters": [ |
| 21 { |
| 22 "type": "object", |
| 23 "name": "serialInfo", |
| 24 "properties": { |
| 25 "connectionId": { |
| 26 "type": "integer", |
| 27 "minimum": 1, |
| 28 "description": "The id of the opened connection." |
| 29 } |
| 30 } |
| 31 } |
| 32 ] |
| 33 } |
| 34 ] |
| 35 }, |
| 36 { |
| 37 "name": "close", |
| 38 "type": "function", |
| 39 "description": "Closes an open connection.", |
| 40 "parameters": [ |
| 41 { |
| 42 "name": "connectionId", |
| 43 "type": "integer", |
| 44 "minimum": 1, |
| 45 "description": "The id of the opened connection." |
| 46 }, |
| 47 { |
| 48 "name": "callback", |
| 49 "type": "function", |
| 50 "description": "Called when the connection has been closed.", |
| 51 "parameters": [ |
| 52 { |
| 53 "type": "boolean", |
| 54 "name": "result", |
| 55 "description": "True if the connection was successfully closed." |
| 56 } |
| 57 ] |
| 58 } |
| 59 ] |
| 60 } |
| 61 ] |
| 62 } |
| 63 ] |
OLD | NEW |