TCP server¶
The module WiFi for OpenBCI receive the instructions to connect with a TCP server, before that happens, the server must be running and waiting for clients.
- class openbci_stream.acquisition.tcp_server.WiFiShieldTCPServer(host, binary_stream: Callable, kafka_context: Callable)[source]¶
Create a TCP server that handles the connexión of the WiFi module.
- Parameters
host – IP address of the machine that WiFi module will connect.
binary_stream – Function that return a kafka producer, this producer could not exist in the very moment of creation of this class instance.
kafka_context – Funtion that return the information from the acquisition side useful for deserializing and will be packaged back in the stream.