How to send data from Linino to Atmega with a python script

Hi!

I want to control my robot from internet with a protocol that i want to make myself like the picture below. I don’t want to use something like temboo.

the master is the linino and it manages the transfer of the information and compute the data.

My Atmega is just something like a gateway, it get the data and redirect the information.

My problem is that i don’t know how to send data from a python script and get this into the atmega.

A lot of tutorials explain when the master is the atmega but not when it’s the linino

the most useful topic is: http://forum.arduino.cc/index.php?topic=191820.0

but nothing explain how to use bridge.py

index.html (7.2 KB)

YunWebsocketServer.py (5.22 KB)

ok lol

I don't be aware of the 1 after Serial1.begin()

it's work now