OSError: 118 with esp32 - python

I am currently working on a code in micropython using the esp32, and getting an error messeage that says "OSError:118". if anyone is familiar with the problem I,d be happy to get help. I'm using pycharm and the socket library.
im creating a very basic client-server connection. the server runs on python, the client is the esp32. when I ran the code with two computers it worked.

Your network/wifi is not connected. Make sure you have a successful connection to the device as it is not active.

Related

Raspberry Pi unable to connect to Windows Websocket

I am attempting to send data from a Python script running on a Raspberry Pi to a Java Micronaut ServerWebSocket running on a Windows machine, but I am getting asyncio.exceptions.TimeoutError errors during the process.
I attempted to use the websockets library in Python on the Raspberry Pi to establish a websocket connection, but encountered a ConnectionRefusedError. Is this issue related to a network problem as mentioned here, and should I ask somewhere else like Superuser or Serverfault? Or is there another solution to this problem?
As #life888888 suggested, it had something to do with Windows firewall.
But instead of the public firewall being the problem, it was the one for the domain network instead.

Is it possible for a website to refuse access from a Python Selenium script?

I try to make a script logging on to a website, and I think my code is correct, but gets the following error code: "Could not connect because the destination computer actively denied it"
Is it possible to make a website that can refuse access for Selenium?
I have inserted the entire error code here, sorry that the last part is in Danish:
Shell Error message
It is TCP error code 10061: No connection could be made because the target machine actively refused it.
It's possible that the website has no services listening on the specified port, or there is a firewall stopping you.

How do I communicate to NodeMCU module through python?

Basically I want to be able to send instructions for a bot over WiFi using the nodeMCU module, but I cant find any detailed functions list that can help me.
I've already tried setting up a server on the NodeMCU, and then a html webpage can then be created on my laptop with buttons for instructions from this and it works, but when I try to to the same on python, (send GET requests through python) I get this error on trying to do more than one request:
ConnectionError: ('Connection aborted.', ConnectionAbortedError(10053, 'An established connection was aborted by the software in your host machine', None, 10053, None))
Also I think the converse would be better suited for my case, a server on the laptop and client as the module, but I don't know where to start.
I coded the on the module using arduino IDE and on my laptop I'm using spyder. For sending requests and stuff I'm using the requests package.
You can create HTTP endpoints in nodeMCU and call them from your python script.
For this to work, both the nodeMCU and the machine running the python script has to be in the same network. and the IP address of the nodeMCU should be correctly added in the python script.
If you wanted to use your laptop as the server, I would suggest going with an MQTT broker such as mosquito, and communicate between the nodeMCU and the python script using the MQTT protocol.

How do I incorporate a websocket connection between cozmo robot and a hololens?

I'm using ROS Python library with cozmo and I want to use the information that I get from back from him to interact with him in AR using a Hololens. From what I know I need to establish a connection using websocket with cozmo and the hololens. I don't know how to incorporate WebSocket with Unity.
If anyone knows of any resources I would appreciate it.
Thank you
Check out https://assetstore.unity.com/packages/essentials/tutorial-projects/simple-web-sockets-for-unity-webgl-38367.
Even though it says "for WebGL" on the package title, I used it in an Android app connecting to a Python WebSockets server, and used the same code in a Windows executable.
Should work on Hololens too.

Uncaught Exeption iin /iris/ws (also [Errno 101] Network unreachable)

I started to install MOPIDY on a "Centos 7"-Virtual Machine.
Everything works fine, I also installed a Web client named "Iris".
I can connect to Spotify, but the "Pusher" (i think "iris"!?) connects and disconnects again and again and again. I don't know why and I also get some errors in my terminal. I don't know where to look to fix the Problems, maybe you have any tips Guys?
I think this are not the Iris you are looking for ?
http://scitools.org.uk/iris/

Categories

Resources