N-Ehrhardt-de:
Mh, I want to send data from a sensor via a Wlan module to the arduino. There it shall be saved onto sd and presented with a webinterface. The webinterface with bridge exists already. The Webserver is written with python 2.7.3
Mh, I posted this in the programming section, because the core question is about python 2.7.3
I want to implement the socket application in a main class, that also works with the Streamrequesthandler. Now my handbook does not know this class, also it is python 3... version problems.
I got angry because of this langauage, the easiest examples produce nothing but errors.
::::SNIP::::
My english should not be one of your matters.
@N-Ehrhardt-de,
thank you for your reply. Your explanation is better.
I understand you may have been upset when you wrote your original post.
I said your English was below average because many times people on the board have poor English. Your English is better than most, but your second post shows you have good English skills.
ON YOUR PROBLEM:
The library you are using is NOT for the Arudino YUN. This is a common mistake.
The Yun has it's own library.
https://www.arduino.cc/en/Reference/YunBridgeLibrary
The following informaiton will help you to understand the YUN, and fix many common problems people have when using Yun for the first time.
= [Q:] I cannot connect to My Arduino Yún. What do I do? =
First it's good to know, when Arduino Yun cannot find the AP you have set it for (like your home wifi), it has a script that puts it back into default SSID and AP mode.
Next, you may have already watched this video, but it's worth watching again. Pay extra attention to the part with the sketches.
Getting started with Arduino Yún - tutorial (6:53)
Then, read these short instructions. We (the volunteer support group) already know these steps by heart, so be familiar with the different reboot methods, and especially the 30+ second wifi reset. Also, not mentioned on that page, if you reset the Wifi/Linux part of the Yun, it will take from 2-8 minutes for the reboot. Lastly on this part, YOU MUST WAIT for the Linux portion to fully boot BEFORE YOU PRESS ANY of the REST buttons.
Lastly, before you do this make sure you backup and data you have on your Yun as it will be lost after this reset.
Resetting the processors (AR9331, WiFi, and 32U4)
http://arduino.cc/en/Guide/ArduinoYun#toc6
'''Then start over''', plug your Yun into the USB port, run this sketch, and hit the ''Wifi Reset button'' (for 5-10 seconds).
http://arduino.cc/en/Tutorial/YunSerialTerminal
The ''YunSerialTerminal'' provides a simplified console access to the Linux part of the Yun. It works via the USB port (the one that powers the Yun - the microUSB). From there you'll be able to run a few commands to give us a better idea of problems.
Also, be ready with this sketch YunWiFiStatus. This sketch will help us see the status of your home AP. The sketch prints the wifi status to the console every 5 seconds or so. This sketch might seem familiar as it was in that first video link (above).
Let us know how it goes.
Post results from the YunSerialTerminal, if you are still having problems.
Please use markup when posting results.
Jesse
