Open shyam3089 opened 1 year ago
The given example code just outputs:
00:06:27.056 -> [SIoC] Disconnected! 00:06:27.286 -> [SIoC] add packet 42["status",Hello from esp32!] 00:06:27.595 -> [SIoC] Disconnected! 00:06:28.154 -> [SIoC] Disconnected! 00:06:28.716 -> [SIoC] Disconnected!
And CocketIO server is not receiving anything:
Python code: @socketio.on('status') def test_connect(data): logging.info("receiving: "+data) socketio.emit('event', {"data":"received..."})
@socketio.on('status') def test_connect(data): logging.info("receiving: "+data) socketio.emit('event', {"data":"received..."})
What could be the issue here?
Mine is connecting, but not receiving the messages in the server
The given example code just outputs:
00:06:27.056 -> [SIoC] Disconnected! 00:06:27.286 -> [SIoC] add packet 42["status",Hello from esp32!] 00:06:27.595 -> [SIoC] Disconnected! 00:06:28.154 -> [SIoC] Disconnected! 00:06:28.716 -> [SIoC] Disconnected!
And CocketIO server is not receiving anything:
Python code:
@socketio.on('status') def test_connect(data): logging.info("receiving: "+data) socketio.emit('event', {"data":"received..."})
What could be the issue here?