Thread socket server with ble support