inputs parameters for prepare_session method :param serial_port: serial port name is used for boards which reads data from serial port :type serial_port: str :param mac_address: mac address for example its used for bluetooth based boards :type mac_address: str :param ip_address
| 101 | |
| 102 | |
| 103 | class BrainFlowInputParams(object): |
| 104 | """ inputs parameters for prepare_session method |
| 105 | |
| 106 | :param serial_port: serial port name is used for boards which reads data from serial port |
| 107 | :type serial_port: str |
| 108 | :param mac_address: mac address for example its used for bluetooth based boards |
| 109 | :type mac_address: str |
| 110 | :param ip_address: ip address is used for boards which reads data from socket connection |
| 111 | :type ip_address: str |
| 112 | :param ip_address_aux: ip address is used for boards which reads data from socket connection |
| 113 | :type ip_address_aux: str |
| 114 | :param ip_address_anc: ip address is used for boards which reads data from socket connection |
| 115 | :type ip_address_anc: str |
| 116 | :param ip_port: ip port for socket connection, for some boards where we know it in front you dont need this parameter |
| 117 | :type ip_port: int |
| 118 | :param ip_port_aux: ip port for socket connection, for some boards where we know it in front you dont need this parameter |
| 119 | :type ip_port_aux: int |
| 120 | :param ip_port_anc: ip port for socket connection, for some boards where we know it in front you dont need this parameter |
| 121 | :type ip_port_anc: int |
| 122 | :param ip_protocol: ip protocol type from IpProtocolTypes enum |
| 123 | :type ip_protocol: int |
| 124 | :param other_info: other info |
| 125 | :type other_info: str |
| 126 | :param serial_number: serial number |
| 127 | :type serial_number: str |
| 128 | :param file: file |
| 129 | :type file: str |
| 130 | :param file_aux: file |
| 131 | :type file_aux: str |
| 132 | :param file_anc: file |
| 133 | :type file_anc: str |
| 134 | """ |
| 135 | |
| 136 | def __init__(self) -> None: |
| 137 | self.serial_port = '' |
| 138 | self.mac_address = '' |
| 139 | self.ip_address = '' |
| 140 | self.ip_address_aux = '' |
| 141 | self.ip_address_anc = '' |
| 142 | self.ip_port = 0 |
| 143 | self.ip_port_aux = 0 |
| 144 | self.ip_port_anc = 0 |
| 145 | self.ip_protocol = IpProtocolTypes.NO_IP_PROTOCOL.value |
| 146 | self.other_info = '' |
| 147 | self.timeout = 0 |
| 148 | self.serial_number = '' |
| 149 | self.file = '' |
| 150 | self.file_aux = '' |
| 151 | self.file_anc = '' |
| 152 | self.master_board = BoardIds.NO_BOARD.value |
| 153 | |
| 154 | def to_json(self) -> None: |
| 155 | return json.dumps(self, default=lambda o: o.__dict__, |
| 156 | sort_keys=True, indent=4) |
| 157 | |
| 158 | |
| 159 | class BoardControllerDLL(object): |