Okay, so nothing to reset is coming up on the arduino.local page. I used my computer to put the file on the SD card.
The SD card is called SD and I put the file in the root folder
EDIT: Tried using terminal too, same message as before, no such file or directory
Awesome, I can receive the G over on another laptop running Max, woo.
Now I'm trying to send 4 analogue pins over it (and ideally a couple of digital things, but not essential at the moment). Looking into bridge etc, but I can't work out how to get it from the arduino sketch into the python sketch (then onto Max).
I'm guessing that I'll need to change MESSAGE into something? Again, thankyou!
I have a general question about developing on the Yun using Python.
If my Python code has an error in it then how can I see the error messages?
I can test the Python code in Python on my iMac but there appear to be differences in the syntax so I could still get an error when the code is run on the Yun.
sannyyu: I am using your code shown above to control my WiFi lights successfully but now I would like to be able to receive UDP messages from my iPhone/iMac and to send a reply. The messages from the iPhone/iMac can be sent at any time.
I have added the following code to receive UDP messages from my iPhone and to send a reply. However, the Python code hangs and I never see the output from the statement - print("After dataFromClient"). If I send a UDP message from my iPhone then the print is executed.
I would like the code to continue processing if no UDP data has been received. I am testing this on my iMac running Python v3.4 and sending UDP test messages from my iPhone.
sannyyu: I am using your code shown above to control my WiFi lights successfully but now I would like to be able to receive UDP messages from my iPhone/iMac and to send a reply.
It is sonnyyu.
I never code python on Mac or Windows but Linux:
#!/usr/bin/python3
....
It will run at 3.X
#!/usr/bin/python
...
It will run at 2.X
I believe that Python 2 and Python 3 could coexist peacefully at Macintosh as well.
I am using the iMac to develop code that will eventually run on the Yun. I will change the syntax of my Python v3 code to run under v2.7 on the Yun when fully developed.
The problem that I cannot solve is how to get past the line dataFromClient, address = server_socket.recvfrom(256) in my Python code when no UDP message has been sent.
If you can help with that I will be very grateful. In the meantime I will see if I can get Python v2.7 to run on my iMac.
Edit: Python v2.7 running on iMac now so the code I develop should transfer straight across to the Yun
Hi guys,
is there somewhere any sketch for sending udp data from the yun to other devices?
Just starting a project for sending sensors data through udp and have no idea if this can be acomplished with yun wifi.
Thanks in advance.
I am new to the arduino Yun and its capablity. Could you explain more how to exactly implement a Python code in the Linux side. Do you use the arduino IDE and import the python code or exactly how does it work?
Any help would be much appreciated! Trying to finish a senior design project
@cvanbeber:
Please start a new thread and expose your question. Don't make generic question.
Try to read some documentation or search in the forum and then make a specific question with issues that you encounter.