Reading MoteinoUSB output from USB port of RPi

Started by vdesouza, April 03, 2016, 01:26:28 PM

vdesouza

Still trying to figure out how Moteino's work. I am trying to read the output from a MoteinoUSB plugged into a usb port of a RPi. I am trying to do this with Python.

Set up:
Node - MotionMote that sends a "motion detected" message when motion is detected.
Gateway - A MoteinoUSB plugged into the usb port on my raspberry pi.

What I am trying to do:
How can I use python to read the "motion detected" message from the usb moteino plugged into the Raspberry Pi?
Something like:
message = getMoteinoMessage()
if "motion detected" in message:
    //do something

How do I write the getMoteinoMessage?

Thanks

Felix